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

Issue 2680023003: [GeometryInterface] add getBounds function in DOMQaud. (Closed)

Created:
3 years, 10 months ago by Hwanseung Lee
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, Hwanseung Lee(hs1217.lee), rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[GeometryInterface] add getBounds function in DOMQaud. The getBounds() method, when invoked, must run the following algorithm: 1.Let bounds be a DOMRect object. 2.Let left be the minimum of p1.x, p2.x, p3.x and p4.x. 3.Let top be the minimum of p1.y, p2.y, p3.y and p4.y. 4.Let right be the maximum of p1.x, p2.x, p3.x and p4.x. 5.Let bottom be the maximum of p1.y, p2.y, p3.y and p4.y. 6.Let x coordinate of bounds be left, y coordinate of bounds be top, width dimension of bounds be right - left and height dimension of bounds be bottom - top. 7.Return bounds. spec list: https://drafts.fxtf.org/geometry/#dom-domquad-getbounds BUG=678237 Review-Url: https://codereview.chromium.org/2680023003 Cr-Commit-Position: refs/heads/master@{#450556} Committed: https://chromium.googlesource.com/chromium/src/+/d0ab8b3f65a2c53f1e050b808ea1dc3dae2f4508

Patch Set 1 #

Patch Set 2 : [GeometryInterface] add getBounds function in DOMQaud. #

Total comments: 1

Patch Set 3 : caching #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -3 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/geometry-interface-dom-quad.html View 1 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMQuad.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMQuad.cpp View 1 2 3 chunks +26 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMQuad.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (16 generated)
Hwanseung Lee
@dominic, zino PTAL, thank you.
3 years, 10 months ago (2017-02-08 01:36:44 UTC) #14
zino
https://codereview.chromium.org/2680023003/diff/20001/third_party/WebKit/Source/core/dom/DOMQuad.cpp File third_party/WebKit/Source/core/dom/DOMQuad.cpp (right): https://codereview.chromium.org/2680023003/diff/20001/third_party/WebKit/Source/core/dom/DOMQuad.cpp#newcode34 third_party/WebKit/Source/core/dom/DOMQuad.cpp:34: double left = std::min(p1()->x(), p2()->x()); This might be inefficiency. ...
3 years, 10 months ago (2017-02-13 15:23:19 UTC) #15
Hwanseung Lee
On 2017/02/13 15:23:19, zino wrote: > https://codereview.chromium.org/2680023003/diff/20001/third_party/WebKit/Source/core/dom/DOMQuad.cpp > File third_party/WebKit/Source/core/dom/DOMQuad.cpp (right): > > https://codereview.chromium.org/2680023003/diff/20001/third_party/WebKit/Source/core/dom/DOMQuad.cpp#newcode34 > ...
3 years, 10 months ago (2017-02-13 15:46:49 UTC) #16
dominicc (has gone to gerrit)
lgtm
3 years, 10 months ago (2017-02-15 01:36:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2680023003/40001
3 years, 10 months ago (2017-02-15 01:37:33 UTC) #19
zino
On 2017/02/13 15:46:49, Hwanseung Lee wrote: > On 2017/02/13 15:23:19, zino wrote: > > > ...
3 years, 10 months ago (2017-02-15 01:43:05 UTC) #20
zino
Ah, okay patch set 3 is similar to my thought. After implementing setter, we can ...
3 years, 10 months ago (2017-02-15 01:46:24 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 05:26:26 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d0ab8b3f65a2c53f1e050b808ea1...

Powered by Google App Engine
This is Rietveld 408576698