Bug 112911

Summary: Web Inspector: generalize InspectorDOMAgent::highlightRect() to highlightQuad()
Product: WebKit Reporter: Andrey Kosyakov <caseq>
Component: Web Inspector (Deprecated)Assignee: Andrey Kosyakov <caseq>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, graouts, joepeck, keishi, loislo, pfeldman, pmuellr, timothy, vsevik, web-inspector-bugs, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 112919    
Attachments:
Description Flags
Patch pfeldman: review+

Andrey Kosyakov
Reported 2013-03-21 06:58:51 PDT
We need to highlight paint in transformed layers, so paint rectangles would become quads. This generalizes existing highlight for rectangles to handle quads.
Attachments
Patch (14.44 KB, patch)
2013-03-21 07:05 PDT, Andrey Kosyakov
pfeldman: review+
Andrey Kosyakov
Comment 1 2013-03-21 07:05:14 PDT
Timothy Hatcher
Comment 2 2013-03-21 08:16:17 PDT
Comment on attachment 194255 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=194255&action=review > Source/WebCore/inspector/Inspector.json:1779 > + "id": "Quad", > + "type": "array", > + "items": { "type": "number" }, > + "minItems": 8, > + "maxItems": 8, > + "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise." An 4 item array of point objects with x and y properties would be more clear.
Pavel Feldman
Comment 3 2013-03-28 05:33:54 PDT
Comment on attachment 194255 [details] Patch As per Timothy's comment.
Andrey Kosyakov
Comment 4 2013-03-28 05:51:08 PDT
Comment on attachment 194255 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=194255&action=review >> Source/WebCore/inspector/Inspector.json:1779 >> + "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise." > > An 4 item array of point objects with x and y properties would be more clear. This is used in entries that are quite frequent (and will perhaps be used even more), so we're trying to save a few bytes on both protocol message and timeline log sizes, as well as use representation that would hopefully be marginally cheaper for VM. On the other hand, there will be almost no access to Quad member in the front-end code, except for length/width calculation, so most of the time it will be treated as opaque object passed to highlightQuad.
Andrey Kosyakov
Comment 5 2013-03-28 05:51:50 PDT
(In reply to comment #3) > (From update of attachment 194255 [details]) > As per Timothy's comment. As discussed offline, this is motivated mostly by performance concerns.
Andrey Kosyakov
Comment 6 2013-03-29 02:25:09 PDT
Note You need to log in before you can comment on or make changes to this bug.