Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Issue 1709003002: Geometry: Reimplement DOMPoint using V8 extras. (Closed)

Created:
4 years, 10 months ago by zino
Modified:
3 years, 3 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Geometry: Reimplement DOMPoint using V8 extras. This implements the DOMPoint[1] class, using experimental V8 extras (so that it will only show up with experimental web platform features enabled). This CL also replaces a existing layout test with a testharness-based test. [1] Spec: https://drafts.fxtf.org/geometry/#DOMPoint BUG=388780

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+497 lines, -436 lines) Patch
M build/common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M build_overrides/v8.gni View 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point.html View 1 2 3 1 chunk +138 lines, -109 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-expected.txt View 1 2 3 1 chunk +0 lines, -75 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-compositor-worker-expected.txt View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/GeometryInterfaces.h View 1 2 1 chunk +25 lines, -0 lines 1 comment Download
A third_party/WebKit/Source/bindings/core/v8/GeometryInterfaces.cpp View 1 2 1 chunk +42 lines, -0 lines 6 comments Download
M third_party/WebKit/Source/bindings/core/v8/v8.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 chunks +0 lines, -9 lines 0 comments Download
D third_party/WebKit/Source/core/dom/DOMPoint.h View 1 chunk +0 lines, -32 lines 0 comments Download
D third_party/WebKit/Source/core/dom/DOMPoint.cpp View 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/WebKit/Source/core/dom/DOMPoint.idl View 1 chunk +0 lines, -20 lines 0 comments Download
D third_party/WebKit/Source/core/dom/DOMPointInit.idl View 1 chunk +0 lines, -12 lines 0 comments Download
D third_party/WebKit/Source/core/dom/DOMPointReadOnly.h View 1 chunk +0 lines, -37 lines 0 comments Download
D third_party/WebKit/Source/core/dom/DOMPointReadOnly.cpp View 1 chunk +0 lines, -22 lines 0 comments Download
D third_party/WebKit/Source/core/dom/DOMPointReadOnly.idl View 1 chunk +0 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 6 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 2 1 chunk +9 lines, -2 lines 2 comments Download
A third_party/WebKit/Source/modules/geometry/DOMPoint.js View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/geometry/DOMPointReadOnly.js View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VREyeParameters.h View 1 2 4 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VREyeParameters.cpp View 1 2 3 chunks +7 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VREyeParameters.idl View 1 2 1 chunk +6 lines, -2 lines 1 comment Download
M third_party/WebKit/Source/modules/vr/VRPositionState.h View 1 2 4 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRPositionState.cpp View 1 2 2 chunks +15 lines, -18 lines 2 comments Download
M third_party/WebKit/Source/modules/vr/VRPositionState.idl View 1 2 1 chunk +10 lines, -6 lines 0 comments Download

Messages

Total messages: 61 (11 generated)
zino
PTAL Thank you. https://codereview.chromium.org/1709003002/diff/40001/third_party/WebKit/Source/modules/vr/VREyeParameters.idl File third_party/WebKit/Source/modules/vr/VREyeParameters.idl (right): https://codereview.chromium.org/1709003002/diff/40001/third_party/WebKit/Source/modules/vr/VREyeParameters.idl#newcode14 third_party/WebKit/Source/modules/vr/VREyeParameters.idl:14: [CallWith=ScriptState] readonly attribute any eyeTranslation; I ...
4 years, 10 months ago (2016-02-18 16:25:33 UTC) #6
domenic
Overall looks good! Lots of little things, but in general this continues to look like ...
4 years, 10 months ago (2016-02-18 19:04:41 UTC) #7
philipj_slow
Are we already shipping things on stable that depend on V8 extras? Trying to figure ...
4 years, 10 months ago (2016-02-19 04:12:17 UTC) #8
domenic
On 2016/02/19 at 04:12:17, philipj wrote: > Are we already shipping things on stable that ...
4 years, 10 months ago (2016-02-19 22:13:29 UTC) #9
philipj_slow
On 2016/02/19 22:13:29, domenic wrote: > On 2016/02/19 at 04:12:17, philipj wrote: > > Are ...
4 years, 10 months ago (2016-02-22 08:48:44 UTC) #10
zino
Thank you for review! :) PTAL. https://codereview.chromium.org/1709003002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-expected.txt File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-expected.txt (left): https://codereview.chromium.org/1709003002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-expected.txt#oldcode19 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-expected.txt:19: # DOMPoint({ x ...
4 years, 10 months ago (2016-02-22 09:51:01 UTC) #13
domenic
https://codereview.chromium.org/1709003002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-expected.txt File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-expected.txt (left): https://codereview.chromium.org/1709003002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-expected.txt#oldcode19 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-expected.txt:19: # DOMPoint({ x : 2 }) On 2016/02/22 at ...
4 years, 10 months ago (2016-02-22 18:29:23 UTC) #14
zino
Thank you for review and questions. https://codereview.chromium.org/1709003002/diff/100001/third_party/WebKit/Source/modules/geometry/DOMPoint.js File third_party/WebKit/Source/modules/geometry/DOMPoint.js (right): https://codereview.chromium.org/1709003002/diff/100001/third_party/WebKit/Source/modules/geometry/DOMPoint.js#newcode24 third_party/WebKit/Source/modules/geometry/DOMPoint.js:24: return this[xSymbol]; Thank ...
4 years, 10 months ago (2016-02-23 16:13:25 UTC) #15
domenic
On 2016/02/23 at 16:13:25, jinho.bang wrote: > Thank you for review and questions. > > ...
4 years, 10 months ago (2016-02-23 16:45:50 UTC) #16
zino
Thank you for your review and inputs. I addressed your comments and added test. Please ...
4 years, 10 months ago (2016-02-24 14:53:42 UTC) #18
domenic
On 2016/02/24 at 14:53:42, jinho.bang wrote: > Thank you for your review and inputs. > ...
4 years, 10 months ago (2016-02-24 21:23:04 UTC) #19
haraken
Unfortunately this CL has a bunch of problems from the binding perspective (although they are ...
4 years, 10 months ago (2016-02-25 11:21:11 UTC) #20
zino
On 2016/02/25 11:21:11, haraken wrote: > Unfortunately this CL has a bunch of problems from ...
4 years, 10 months ago (2016-02-25 11:44:06 UTC) #22
zino
Added pdr@ as reviewer. What do you think?
4 years, 10 months ago (2016-02-25 11:47:24 UTC) #23
haraken
Maybe I'm just behind :) How does it improve performance? For example, when you call ...
4 years, 10 months ago (2016-02-25 11:51:31 UTC) #24
zino
On 2016/02/25 11:51:31, haraken wrote: > Maybe I'm just behind :) > > How does ...
4 years, 10 months ago (2016-02-25 13:57:43 UTC) #25
haraken
On 2016/02/25 13:57:43, zino wrote: > On 2016/02/25 11:51:31, haraken wrote: > > Maybe I'm ...
4 years, 10 months ago (2016-02-25 14:19:28 UTC) #26
zino
On 2016/02/25 14:19:28, haraken wrote: > I'm not quite sure how the operation could work ...
4 years, 10 months ago (2016-02-25 16:41:25 UTC) #27
zino
On 2016/02/25 14:19:28, haraken wrote: > I'm not quite sure how the operation could work ...
4 years, 10 months ago (2016-02-25 16:44:11 UTC) #28
pdr.
@haraken, some backstory... a naive implementation of the DOMMatrix API would be somewhat inefficient for ...
4 years, 10 months ago (2016-02-26 06:37:20 UTC) #29
haraken
On 2016/02/26 06:37:20, pdr wrote: > @haraken, some backstory... a naive implementation of the DOMMatrix ...
4 years, 10 months ago (2016-02-26 09:07:58 UTC) #30
domenic
On 2016/02/26 at 09:07:58, haraken wrote: > domenic: Would you explain how the V8 extra ...
4 years, 10 months ago (2016-02-26 17:01:47 UTC) #31
haraken
On 2016/02/26 17:01:47, domenic wrote: > On 2016/02/26 at 09:07:58, haraken wrote: > > > ...
4 years, 9 months ago (2016-02-27 15:20:25 UTC) #32
domenic
On 2016/02/27 at 15:20:25, haraken wrote: > Does it mean that V8 extra ignores IDL ...
4 years, 9 months ago (2016-02-27 17:06:39 UTC) #33
haraken
On 2016/02/27 17:06:39, domenic wrote: > On 2016/02/27 at 15:20:25, haraken wrote: > > > ...
4 years, 9 months ago (2016-02-29 01:25:10 UTC) #34
philipj_slow
On 2016/02/29 01:25:10, haraken wrote: > a) I'm not really happy about getting rid of ...
4 years, 9 months ago (2016-02-29 04:46:17 UTC) #35
haraken
On 2016/02/29 04:46:17, philipj_UTC7 wrote: > On 2016/02/29 01:25:10, haraken wrote: > > > a) ...
4 years, 9 months ago (2016-02-29 05:04:48 UTC) #36
jochen (gone - plz use gerrit)
I don't think this is a good use of V8 Extras. Note that those classes ...
4 years, 9 months ago (2016-02-29 08:26:12 UTC) #38
jochen (gone - plz use gerrit)
you could of course argue that a point and a matrix are pretty generic concepts ...
4 years, 9 months ago (2016-02-29 08:27:12 UTC) #39
haraken
On 2016/02/29 08:27:12, jochen wrote: > you could of course argue that a point and ...
4 years, 9 months ago (2016-02-29 09:14:56 UTC) #40
jochen (gone - plz use gerrit)
On 2016/02/29 at 09:14:56, haraken wrote: > On 2016/02/29 08:27:12, jochen wrote: > > you ...
4 years, 9 months ago (2016-02-29 09:58:23 UTC) #41
domenic
On 2016/02/29 at 08:27:12, jochen wrote: > you could of course argue that a point ...
4 years, 9 months ago (2016-02-29 12:40:55 UTC) #42
domenic
One more thing... On 2016/02/29 at 01:25:10, haraken wrote: > a) I'm not really happy ...
4 years, 9 months ago (2016-02-29 12:44:18 UTC) #43
jochen (gone - plz use gerrit)
As I said in the mail Kentaro referenced, I don't think that we can't go ...
4 years, 9 months ago (2016-02-29 13:01:00 UTC) #44
domenic
On 2016/02/29 at 13:01:00, jochen wrote: > As I said in the mail Kentaro referenced, ...
4 years, 9 months ago (2016-02-29 17:49:28 UTC) #45
philipj_slow
On 2016/02/29 12:40:55, domenic wrote: > On 2016/02/29 at 01:25:10, haraken wrote: > > a) ...
4 years, 9 months ago (2016-02-29 17:56:26 UTC) #46
domenic
On 2016/02/29 at 17:56:26, philipj wrote: > For me, I wouldn't have a problem nuking ...
4 years, 9 months ago (2016-02-29 18:04:26 UTC) #47
philipj_slow
On 2016/02/29 18:04:26, domenic wrote: > On 2016/02/29 at 17:56:26, philipj wrote: > > > ...
4 years, 9 months ago (2016-02-29 18:19:40 UTC) #48
esprehn
I'm not very comfortable having these implemented without the idl files. One big advantage of ...
4 years, 9 months ago (2016-02-29 20:06:16 UTC) #50
domenic
On 2016/02/29 at 20:06:16, esprehn wrote: > I'm not very comfortable having these implemented without ...
4 years, 9 months ago (2016-02-29 20:09:01 UTC) #51
esprehn
On 2016/02/29 at 20:09:01, domenic wrote: > On 2016/02/29 at 20:06:16, esprehn wrote: > > ...
4 years, 9 months ago (2016-02-29 21:50:28 UTC) #52
philipj_slow
On 2016/02/29 21:50:28, esprehn wrote: > On 2016/02/29 at 20:09:01, domenic wrote: > > On ...
4 years, 9 months ago (2016-03-01 03:57:50 UTC) #53
haraken
On 2016/03/01 03:57:50, philipj_UTC7 wrote: > On 2016/02/29 21:50:28, esprehn wrote: > > On 2016/02/29 ...
4 years, 9 months ago (2016-03-01 04:00:06 UTC) #54
jochen (gone - plz use gerrit)
I don't think we should bypass the bindings system. We can talk about teaching the ...
4 years, 9 months ago (2016-03-01 14:42:00 UTC) #55
domenic
On 2016/03/01 at 14:42:00, jochen wrote: > I don't think we should bypass the bindings ...
4 years, 9 months ago (2016-03-02 22:33:21 UTC) #56
haraken
On 2016/03/02 22:33:21, domenic wrote: > On 2016/03/01 at 14:42:00, jochen wrote: > > I ...
4 years, 9 months ago (2016-03-03 03:02:13 UTC) #57
jochen (gone - plz use gerrit)
On 2016/03/02 at 22:33:21, domenic wrote: > On 2016/03/01 at 14:42:00, jochen wrote: > > ...
4 years, 9 months ago (2016-03-03 06:35:47 UTC) #58
philipj_slow
I agree with domenic@ that it would be sad to block this for many months ...
4 years, 9 months ago (2016-03-03 07:09:53 UTC) #59
haraken
On 2016/03/03 07:09:53, philipj_UTC7 wrote: > I agree with domenic@ that it would be sad ...
4 years, 9 months ago (2016-03-03 07:37:06 UTC) #60
haraken
4 years, 9 months ago (2016-03-03 16:06:49 UTC) #61
Either way (i.e., whether we implement the JS-JS bindings or not), it would be
helpful to have a benchmark that shows the performance problem of DOMMatrix.
Then the binding team can look into what is slow and how to fix the problem :)

Powered by Google App Engine
This is Rietveld 408576698