Closed Bug 877320 Opened 11 years ago Closed 11 years ago

Expose a node front in the Selection object in addition to a raw node

Categories

(DevTools :: Inspector, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 25

People

(Reporter: dcamp, Assigned: dcamp)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Attached patch WIP 1 (obsolete) (deleted) — Splinter Review
Depends on: 881120
No longer depends on: 877300
Attached patch v1 (deleted) — Splinter Review
Attachment #758237 - Attachment is obsolete: true
Attachment #764484 - Attachment description: WIP 2 → v1
Attachment #764484 - Flags: review?(paul)
Comment on attachment 764484 [details] [diff] [review] v1 >diff --git a/browser/devtools/fontinspector/font-inspector.js b/browser/devtools/fontinspector/font-inspector.js >--- a/browser/devtools/fontinspector/font-inspector.js >+++ b/browser/devtools/fontinspector/font-inspector.js >@@ -49,16 +49,17 @@ FontInspector.prototype = { > } > }, > > /** > * Selection 'new-node' event handler. > */ > onNewNode: function FI_onNewNode() { > if (this.isActive() && >+ this.inspector.selection.isLocal() && > this.inspector.selection.isConnected() && > this.inspector.selection.isElementNode() && > this.inspector.selection.reason != "highlighter") { > this.undim(); > this.update(); > } else { > this.dim(); > } I'm not sure to understand why you do that here? Do you check `isLocal` to disable the font inspector in case of remote inspection?
Attachment #764484 - Flags: review?(paul) → review+
Assignee: nobody → dcamp
Whiteboard: [fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 25
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: