WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 111312
Web Inspector: allow retrieval of composited layers in a given DOM subtree
https://bugs.webkit.org/show_bug.cgi?id=111312
Summary
Web Inspector: allow retrieval of composited layers in a given DOM subtree
Antoine Quint
Reported
2013-03-04 06:28:11 PST
Web Inspector: allow retrieval of composited layers in a given DOM subtree
Attachments
Patch
(24.42 KB, patch)
2013-03-04 06:32 PST
,
Antoine Quint
no flags
Details
Formatted Diff
Diff
Patch for landing
(24.29 KB, patch)
2013-03-05 02:57 PST
,
Antoine Quint
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2013-03-04 06:29:07 PST
Add a new LayerTreeAgent method allowing the front-end to gather all composited layers associated with nodes in the subtree of which the provided node is the root. This is a subtask of
https://bugs.webkit.org/show_bug.cgi?id=110407
.
Radar WebKit Bug Importer
Comment 2
2013-03-04 06:29:22 PST
<
rdar://problem/13336629
>
Antoine Quint
Comment 3
2013-03-04 06:32:00 PST
Created
attachment 191223
[details]
Patch
Simon Fraser (smfr)
Comment 4
2013-03-04 15:34:34 PST
Comment on
attachment 191223
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=191223&action=review
> Source/WebCore/inspector/InspectorLayerTreeAgent.cpp:136 > + gatherLayersUsingRenderLayerHierarchy(errorString, renderer->enclosingLayer(), layers);
renderer->enclosingLayer() should just be toRenderLayerModelObject(renderer)->layer()
> Source/WebCore/inspector/InspectorLayerTreeAgent.cpp:179 > + int id = domAgent->boundNodeId(node); > + if (!id) > + id = domAgent->pushNodeToFrontend(errorString, domAgent->boundNodeId(node->document()), node);
Don't use 'id' in code; it will conflict with Objective-C's reserved word if this is ever turned into Obj-C++.
Joseph Pecoraro
Comment 5
2013-03-04 16:27:29 PST
Comment on
attachment 191223
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=191223&action=review
> Source/WebCore/inspector/Inspector.json:3686 > + { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Root of the subtree for which we want to gather layers." } ],
Formatting: The ending '],' should be on its own line, looks like the newline got lost.
Antoine Quint
Comment 6
2013-03-05 01:42:22 PST
(In reply to
comment #4
)
> (From update of
attachment 191223
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=191223&action=review
> > > Source/WebCore/inspector/InspectorLayerTreeAgent.cpp:136 > > + gatherLayersUsingRenderLayerHierarchy(errorString, renderer->enclosingLayer(), layers); > > renderer->enclosingLayer() should just be toRenderLayerModelObject(renderer)->layer()
Will change in commit.
> > Source/WebCore/inspector/InspectorLayerTreeAgent.cpp:179 > > + int id = domAgent->boundNodeId(node); > > + if (!id) > > + id = domAgent->pushNodeToFrontend(errorString, domAgent->boundNodeId(node->document()), node); > > Don't use 'id' in code; it will conflict with Objective-C's reserved word if this is ever turned into Obj-C++.
Good point. I'll rename to "nodeId". Thanks for the review!
Antoine Quint
Comment 7
2013-03-05 01:42:46 PST
(In reply to
comment #5
)
> (From update of
attachment 191223
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=191223&action=review
> > > Source/WebCore/inspector/Inspector.json:3686 > > + { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Root of the subtree for which we want to gather layers." } ], > > Formatting: The ending '],' should be on its own line, looks like the newline got lost.
Not sure what happened in the diff, but the new line is there alright in the code, no worries.
Antoine Quint
Comment 8
2013-03-05 02:57:33 PST
Created
attachment 191449
[details]
Patch for landing
WebKit Review Bot
Comment 9
2013-03-05 03:33:32 PST
Comment on
attachment 191449
[details]
Patch for landing Clearing flags on attachment: 191449 Committed
r144747
: <
http://trac.webkit.org/changeset/144747
>
WebKit Review Bot
Comment 10
2013-03-05 03:33:37 PST
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