WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
111703
Web Inspector: provide reasons why a layer was composited in the LayerTreeAgent
https://bugs.webkit.org/show_bug.cgi?id=111703
Summary
Web Inspector: provide reasons why a layer was composited in the LayerTreeAgent
Antoine Quint
Reported
2013-03-07 02:55:24 PST
The reasons why a layer was composited in the first place would be very useful information to developers.
Attachments
Patch
(12.17 KB, patch)
2013-03-07 06:49 PST
,
Antoine Quint
no flags
Details
Formatted Diff
Diff
Patch
(19.00 KB, patch)
2013-03-07 10:13 PST
,
Antoine Quint
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-03-07 02:55:35 PST
<
rdar://problem/13367507
>
Antoine Quint
Comment 2
2013-03-07 06:49:53 PST
Created
attachment 191987
[details]
Patch
Timothy Hatcher
Comment 3
2013-03-07 07:11:14 PST
Comment on
attachment 191987
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=191987&action=review
> Source/WebCore/inspector/Inspector.json:3708 > + { "name": "reasonsMask", "type": "integer", "description": "The reasons why the layer was composited." }
I don't think exposing the raw mask is safe and exposes internal WebCore data that might not be stable. There are no guarantees someone won't add an item in the middle later. Returning an array of values defined in the protocol as an enum is the safest option. That way the clients don't need internal knowledge of WebCore and everything is defined in the protocol. That would encourage anyone adding reasons in the future to also extend the protocol enums.
Antoine Quint
Comment 4
2013-03-07 10:13:20 PST
Created
attachment 192038
[details]
Patch
WebKit Review Bot
Comment 5
2013-03-07 14:23:52 PST
Comment on
attachment 192038
[details]
Patch Clearing flags on attachment: 192038 Committed
r145136
: <
http://trac.webkit.org/changeset/145136
>
WebKit Review Bot
Comment 6
2013-03-07 14:23:56 PST
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 7
2013-03-07 15:18:08 PST
Comment on
attachment 192038
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=192038&action=review
Could you follow-up fix the typos? (My tree isn't clean)
> Source/WebCore/inspector/Inspector.json:3685 > + "description": "An object containg the reasons why the layer was composited as properties.",
Typo: "containg" => "containing"
> Source/WebCore/inspector/Inspector.json:3693 > + { "name": "clipsCompositingDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element clippng compositing descendants." },
Typo: "clippng" => "clipping"
Antoine Quint
Comment 8
2013-03-08 00:59:07 PST
(In reply to
comment #7
)
> (From update of
attachment 192038
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=192038&action=review
> > Could you follow-up fix the typos? (My tree isn't clean) > > > Source/WebCore/inspector/Inspector.json:3685 > > + "description": "An object containg the reasons why the layer was composited as properties.", > > Typo: "containg" => "containing" > > > Source/WebCore/inspector/Inspector.json:3693 > > + { "name": "clipsCompositingDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element clippng compositing descendants." }, > > Typo: "clippng" => "clipping"
I fixed those typos in
http://trac.webkit.org/changeset/145191
. Thanks for spotting them Joe.
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