Summary: | Web Inspector: provide reasons why a layer was composited in the LayerTreeAgent | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Antoine Quint <graouts> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Antoine Quint <graouts> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | apavlov, joepeck, keishi, loislo, pfeldman, pmuellr, timothy, vsevik, web-inspector-bugs, webkit-bug-importer, webkit.review.bot, yurys | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Antoine Quint
2013-03-07 02:55:24 PST
Created attachment 191987 [details]
Patch
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. Created attachment 192038 [details]
Patch
Comment on attachment 192038 [details] Patch Clearing flags on attachment: 192038 Committed r145136: <http://trac.webkit.org/changeset/145136> All reviewed patches have been landed. Closing bug. 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" (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. |