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 112911
Web Inspector: generalize InspectorDOMAgent::highlightRect() to highlightQuad()
https://bugs.webkit.org/show_bug.cgi?id=112911
Summary
Web Inspector: generalize InspectorDOMAgent::highlightRect() to highlightQuad()
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andrey Kosyakov
Comment 1
2013-03-21 07:05:14 PDT
Created
attachment 194255
[details]
Patch
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
Committed
r147202
: <
http://trac.webkit.org/changeset/147202
>
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