WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
70417
Web Inspector: get rid of manual view hierarchy management.
https://bugs.webkit.org/show_bug.cgi?id=70417
Summary
Web Inspector: get rid of manual view hierarchy management.
Pavel Feldman
Reported
2011-10-19 07:14:54 PDT
This change removes necessity to manage view hierarchy manually (add/removeChildView methods are going away).
Attachments
Patch
(33.41 KB, patch)
2011-10-19 08:02 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
[Patch] Review comments addressed
(33.66 KB, patch)
2011-10-19 08:32 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
[Patch] Review comments addressed
(34.12 KB, patch)
2011-10-19 08:39 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
[Patch] with new iframe support
(42.29 KB, patch)
2011-10-19 09:38 PDT
,
Pavel Feldman
yurys
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2011-10-19 08:02:47 PDT
Created
attachment 111622
[details]
Patch
Andrey Kosyakov
Comment 2
2011-10-19 08:21:49 PDT
Comment on
attachment 111622
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=111622&action=review
> Source/WebCore/inspector/front-end/NetworkPanel.js:-43 > - // FIXME: some of the styles should be loaded on demand by components that need them. > - var styles = [ > - "inspectorCommon.css", > - "dataGrid.css", > - "networkLogView.css" > - ]; > - WebInspector.IFrameView.call(this, parentElement, styles);
This will probably regress performance. At least, this is worth reflecting in the ChangeLog.
> Source/WebCore/inspector/front-end/Panel.js:88 > + detach: function()
how are extensions tests doing with this?
> Source/WebCore/inspector/front-end/View.js:139 > + if (childIndex < 0) { > + console.error("Attempt to remove non-child view");
When are we supposed to hit the check?
> Source/WebCore/inspector/front-end/View.js:185 > + while (parentElement && !parentElement.__view__)
Just __view seems more consistent with the rest of our code. __foo__ seems to be customary used for JS quirks.
> Source/WebCore/inspector/front-end/View.js:198 > + printViewHierarchy: function()
Is this still necessary?
> Source/WebCore/inspector/front-end/View.js:205 > + _collectViewHierarchy: function(prefix, lines)
ditto.
Pavel Feldman
Comment 3
2011-10-19 08:29:01 PDT
Comment on
attachment 111622
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=111622&action=review
>> Source/WebCore/inspector/front-end/NetworkPanel.js:-43 >> - WebInspector.IFrameView.call(this, parentElement, styles); > > This will probably regress performance. At least, this is worth reflecting in the ChangeLog.
Done.
>> Source/WebCore/inspector/front-end/Panel.js:88 >> + detach: function() > > how are extensions tests doing with this?
Rolled it back for now.
>> Source/WebCore/inspector/front-end/View.js:139 >> + console.error("Attempt to remove non-child view"); > > When are we supposed to hit the check?
We are not supposed to. I'll remove it after a number of builds.
>> Source/WebCore/inspector/front-end/View.js:185 >> + while (parentElement && !parentElement.__view__) > > Just __view seems more consistent with the rest of our code. __foo__ seems to be customary used for JS quirks.
done.
>> Source/WebCore/inspector/front-end/View.js:198 >> + printViewHierarchy: function() > > Is this still necessary?
Yes, I'd like to keep this debugging code at least for some time.
>> Source/WebCore/inspector/front-end/View.js:205 >> + _collectViewHierarchy: function(prefix, lines) > > ditto.
ditto
Pavel Feldman
Comment 4
2011-10-19 08:32:36 PDT
Created
attachment 111626
[details]
[Patch] Review comments addressed
Pavel Feldman
Comment 5
2011-10-19 08:39:43 PDT
Created
attachment 111627
[details]
[Patch] Review comments addressed
Andrey Kosyakov
Comment 6
2011-10-19 08:45:54 PDT
Comment on
attachment 111627
[details]
[Patch] Review comments addressed LGTM
Pavel Feldman
Comment 7
2011-10-19 09:38:03 PDT
Created
attachment 111636
[details]
[Patch] with new iframe support
Yury Semikhatsky
Comment 8
2011-10-19 09:40:35 PDT
Comment on
attachment 111627
[details]
[Patch] Review comments addressed View in context:
https://bugs.webkit.org/attachment.cgi?id=111627&action=review
> Source/WebCore/inspector/front-end/View.js:76 > + if (parentElement && this.element.parentElement != parentElement)
!= -> !==
Yury Semikhatsky
Comment 9
2011-10-19 10:00:08 PDT
Comment on
attachment 111636
[details]
[Patch] with new iframe support View in context:
https://bugs.webkit.org/attachment.cgi?id=111636&action=review
> Source/WebCore/inspector/front-end/ProfilesPanel.js:209 > + if ("dispose" in view)
This can be implemented as detach override in corresponding view.
Pavel Feldman
Comment 10
2011-10-20 04:23:10 PDT
Committed
r97961
: <
http://trac.webkit.org/changeset/97961
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug