Closed Bug 706886 Opened 13 years ago Closed 12 years ago

Line-through disappears after editing overridden rule in style inspector

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 22

People

(Reporter: harth, Assigned: miker)

Details

(Whiteboard: [ruleview])

Attachments

(1 file, 1 obsolete file)

If you edit an overridden rule in the ruleview the line-through / strikeout indicator disappears. The line-through should be re-applied after editing the rule.
So it does, weird.
Priority: -- → P2
Assignee: nobody → dcamp
Attached patch fix (obsolete) — Splinter Review
Fairly straightforward: * During refresh, TextPropertyEditor hides the strikethrough while editing (to avoid looking strange) by checking if there's an active editor on its spans. * inplace editor was calling done() callback before tearing itself down. * done() indirectly causes a refresh (good) which saw a still-active editor (bad). Attached patch tears down the editor before calling the done() callback.
Attachment #579906 - Flags: review?(jwalker)
Attachment #579906 - Flags: feedback?(rcampbell)
Comment on attachment 579906 [details] [diff] [review] fix Review of attachment 579906 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/styleinspector/CssRuleView.jsm @@ +1284,1 @@ > } This is a blatant 'to prove i read it' comment: this._clear(); if (typeof this.done == "function") { let value = this.cancelled ? this.initial : this.input.value.trim(); this.done(value, !this.cancelled); } It's 0.0002ms faster in the case when this.done isn't set, and it doesn't crash if this.done is set incorrectly, and it read easier to me, and I really don't care if you ignore me.
Attachment #579906 - Flags: review?(jwalker) → review+
Bug triage, filter on PEGASUS.
Whiteboard: [ruleview]
Whiteboard: [ruleview] → [ruleview][land-in-fx-team]
Comment on attachment 579906 [details] [diff] [review] fix yeah, sure thing.
Attachment #579906 - Flags: feedback?(rcampbell) → feedback+
Status: NEW → ASSIGNED
Whiteboard: [ruleview][land-in-fx-team] → [ruleview][fixed-in-fx-team]
Whiteboard: [ruleview][fixed-in-fx-team] → [ruleview]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Unfortunately, this is happening again.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Not sure when I can get to this, so assigning to default in case someone else wants to pick it up.
Assignee: dcamp → nobody
Assignee: nobody → mratcliffe
Attached patch PatchSplinter Review
Simple fix. Use linethrough if we should when the value is overridden. We were displaying as overridden when the name was changed, but not the value.
Attachment #579906 - Attachment is obsolete: true
Attachment #716483 - Flags: review?(fayearthur)
Whiteboard: [ruleview] → [ruleview][has-patch]
Attachment #716483 - Flags: review?(fayearthur) → review+
Whiteboard: [ruleview][has-patch] → [ruleview][land-in-fx-team]
Whiteboard: [ruleview][land-in-fx-team] → [ruleview][fixed-in-fx-team]
Status: REOPENED → RESOLVED
Closed: 13 years ago12 years ago
Resolution: --- → FIXED
Whiteboard: [ruleview][fixed-in-fx-team] → [ruleview]
Target Milestone: --- → Firefox 22
No longer blocks: DevToolsPaperCuts
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: