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 #
Messages
Total messages: 24 (16 generated)
|