RESOLVED FIXED73323
Web Inspector: [refactoring] do not clone nodes that contain linkified URLs
https://bugs.webkit.org/show_bug.cgi?id=73323
Summary Web Inspector: [refactoring] do not clone nodes that contain linkified URLs
Andrey Kosyakov
Reported 2011-11-29 07:54:03 PST
Avoid cloning nodes containing linkified URLs in StylesSidebatrPane. This is an intermediate step to use JS properties instead of "preferred_panel" and "line_number" attributes on linkified URLs.
Attachments
Patch (7.08 KB, patch)
2011-11-29 07:56 PST, Andrey Kosyakov
no flags
Patch (7.08 KB, patch)
2011-11-29 08:06 PST, Andrey Kosyakov
no flags
Patch (8.00 KB, patch)
2011-11-29 08:46 PST, Andrey Kosyakov
no flags
Patch (9.53 KB, patch)
2011-11-30 07:03 PST, Andrey Kosyakov
no flags
Patch (9.41 KB, patch)
2011-11-30 07:14 PST, Andrey Kosyakov
pfeldman: review+
Andrey Kosyakov
Comment 1 2011-11-29 07:56:31 PST
Alexander Pavlov (apavlov)
Comment 2 2011-11-29 08:04:53 PST
Comment on attachment 116970 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=116970&action=review Looks good > Source/WebCore/inspector/front-end/StylesSidebarPane.js:1132 > + this.identifier = identifier ; at the end lost
Andrey Kosyakov
Comment 3 2011-11-29 08:06:32 PST
Pavel Feldman
Comment 4 2011-11-29 08:09:33 PST
Comment on attachment 116970 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=116970&action=review > Source/WebCore/inspector/front-end/StylesSidebarPane.js:-925 > - function linkifyUncopyable(url, line) Lets fix linkify uncopyable first.
Andrey Kosyakov
Comment 5 2011-11-29 08:46:30 PST
Pavel Feldman
Comment 6 2011-11-29 11:57:33 PST
Comment on attachment 116970 [details] Patch Cleaning r? that I have set accidentally.
Pavel Feldman
Comment 7 2011-11-30 01:52:25 PST
Comment on attachment 116977 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=116977&action=review > Source/WebCore/inspector/front-end/StylesSidebarPane.js:-935 > - if (this.styleRule.sourceURL) Is there a reason behind the change of behavior? > Source/WebCore/inspector/front-end/StylesSidebarPane.js:1124 > + _updateRuleOrigin: function(text) You don't need to update the origin. Extracting a method that would create a DOM elements link for given section is sufficient for getting rid of the clone.
Andrey Kosyakov
Comment 8 2011-11-30 07:03:59 PST
Andrey Kosyakov
Comment 9 2011-11-30 07:14:12 PST
Andrey Kosyakov
Comment 10 2011-11-30 07:15:56 PST
- dropped StylePropertiesSection.identifier - dropped updateOrigintText() - dropped url extraction from styleRule.rule
Andrey Kosyakov
Comment 11 2011-11-30 08:02:51 PST
Note You need to log in before you can comment on or make changes to this bug.