| Summary: | Web Inspector: Allow toggling the edibility of a DOMTreeOutline | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||||
| Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | burg, commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Joseph Pecoraro
2015-04-15 21:18:09 PDT
Created attachment 250896 [details]
[PATCH] Proposed Fix
Patch doesn't apply because it relies on an earlier change in very similar code. Comment on attachment 250896 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=250896&action=review Very interesting, I made nearly the exact same change in my branch. (Snapshotted DOM nodes aren't editable either.) It seems you missed DOMTreeElement._canAddAttributes (set in constructor) and disabling draggability (DOM elements are configured in onattach). Once these cases are fixed this patch should be ready to go. > Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js:146 > + set editable(x) I would prefer 'value' rather than 'x'. (In reply to comment #4) > Comment on attachment 250896 [details] > [PATCH] Proposed Fix > > View in context: > https://bugs.webkit.org/attachment.cgi?id=250896&action=review > > Very interesting, I made nearly the exact same change in my branch. > (Snapshotted DOM nodes aren't editable either.) > > It seems you missed DOMTreeElement._canAddAttributes (set in constructor) > and disabling draggability (DOM elements are configured in onattach). Once > these cases are fixed this patch should be ready to go. Great catches! > It seems you missed DOMTreeElement._canAddAttributes (set in constructor) This seems like it should stay unaffected. This essentially distinguishes that this DOMTreeElement is the opening tag of an element, so if it was editable attributes can be added. Perhaps it should be renamed. > and disabling draggability (DOM elements are configured in onattach). Yep! Created attachment 250943 [details]
[PATCH] Proposed Fix
> > Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js:146
> > + set editable(x)
>
> I would prefer 'value' rather than 'x'.
Oops, I forgot about this. We tend to use x pretty consistently though. Especially for short functions.
Comment on attachment 250943 [details]
[PATCH] Proposed Fix
r=me
|