WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
164349
Web Inspector: Modify FolderTreeElement to have a Collection as a its represented object
https://bugs.webkit.org/show_bug.cgi?id=164349
Summary
Web Inspector: Modify FolderTreeElement to have a Collection as a its represe...
Devin Rousso
Reported
2016-11-02 16:34:59 PDT
In order to allow folder's to be selectable and show content, it it necessary for them to know what content to display. Now that we have the general WI.Collection model object, we can leverage this by making all WI.FolderTreeElement instances have a representedObject that is a WI.Collection of all its children.
Attachments
Patch
(16.62 KB, patch)
2016-11-02 16:39 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-11-02 16:35:20 PDT
<
rdar://problem/29078775
>
Devin Rousso
Comment 2
2016-11-02 16:39:49 PDT
Created
attachment 293712
[details]
Patch
Timothy Hatcher
Comment 3
2016-11-02 16:45:44 PDT
Comment on
attachment 293712
[details]
Patch Matt, can you review this. It touches code you added, re: countChildrenCallback.
Matt Baker
Comment 4
2016-11-03 11:20:32 PDT
Comment on
attachment 293712
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=293712&action=review
r=me, use of Collection really makes this code cleaner!
> Source/WebInspectorUI/UserInterface/Views/FolderTreeElement.js:28 > + constructor(title, representedObject)
Nice cleanup.
> Source/WebInspectorUI/UserInterface/Views/FolderTreeElement.js:35 > + super(classNames, title, subtitle, representedObject, hasChildren);
Just naming the bool is probably sufficient, but I don't feel too strongly about it.
> Source/WebInspectorUI/UserInterface/Views/FrameTreeElement.js:56 > + for (let [key, value] of Object.entries(WebInspector.Resource.Type)) {
Object.entries, cool!
WebKit Commit Bot
Comment 5
2016-11-03 11:45:11 PDT
Comment on
attachment 293712
[details]
Patch Clearing flags on attachment: 293712 Committed
r208337
: <
http://trac.webkit.org/changeset/208337
>
WebKit Commit Bot
Comment 6
2016-11-03 11:45:15 PDT
All reviewed patches have been landed. Closing bug.
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