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

Issue 2209513002: Exclude start/end container in Range::getBorderAndTextQuads (Closed)

Created:
4 years, 4 months ago by eae
Modified:
4 years, 4 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, 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

Exclude start/end container in Range::getBorderAndTextQuads Change Range::getBorderAndTextQuads to exclude the size of the container elements for either end point. The porition of the element included in a range is accounted for when computing the size for the start & end node. TEST=fast/dom/Range/range-spanning-elements-bounding-client-rect.html BUG=623301 R=yosin@chromium.org Committed: https://crrev.com/7b05ec36906acc9e75c2e06ab68bbd0aa8ba691c Cr-Commit-Position: refs/heads/master@{#412263}

Patch Set 1 #

Patch Set 2 : Added test #

Total comments: 4

Patch Set 3 : Address test failure #

Total comments: 1

Patch Set 4 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/dom/Range/range-spanning-elements-bounding-client-rect.html View 1 1 chunk +41 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Range.cpp View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 31 (17 generated)
eae
4 years, 4 months ago (2016-08-02 23:21:05 UTC) #8
yosin_UTC9
https://codereview.chromium.org/2209513002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/Range/range-spanning-elements-bounding-client-rect.html File third_party/WebKit/LayoutTests/fast/dom/Range/range-spanning-elements-bounding-client-rect.html (right): https://codereview.chromium.org/2209513002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/Range/range-spanning-elements-bounding-client-rect.html#newcode21 third_party/WebKit/LayoutTests/fast/dom/Range/range-spanning-elements-bounding-client-rect.html:21: var range = document.createRange(); FYI: |new Range()| works magically. ...
4 years, 4 months ago (2016-08-03 01:25:04 UTC) #11
eae
https://codereview.chromium.org/2209513002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/Range/range-spanning-elements-bounding-client-rect.html File third_party/WebKit/LayoutTests/fast/dom/Range/range-spanning-elements-bounding-client-rect.html (right): https://codereview.chromium.org/2209513002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/Range/range-spanning-elements-bounding-client-rect.html#newcode21 third_party/WebKit/LayoutTests/fast/dom/Range/range-spanning-elements-bounding-client-rect.html:21: var range = document.createRange(); On 2016/08/03 01:25:04, Yosi_UTC9 wrote: ...
4 years, 4 months ago (2016-08-03 01:49:49 UTC) #12
eae
Turns out it doesn't quite work. It would have to be a different nodeSet given ...
4 years, 4 months ago (2016-08-03 17:09:44 UTC) #13
yosin_UTC9
On 2016/08/03 at 17:09:44, eae wrote: > Turns out it doesn't quite work. It would ...
4 years, 4 months ago (2016-08-04 01:10:15 UTC) #14
yosin_UTC9
On 2016/08/04 at 01:10:15, Yosi_UTC9 wrote: > On 2016/08/03 at 17:09:44, eae wrote: > > ...
4 years, 4 months ago (2016-08-04 01:11:51 UTC) #15
eae
Agreed. Are you fine with the current implemention then?
4 years, 4 months ago (2016-08-04 18:04:47 UTC) #16
yosin_UTC9
On 2016/08/04 at 18:04:47, eae wrote: > Agreed. Are you fine with the current implemention ...
4 years, 4 months ago (2016-08-05 01:24:06 UTC) #17
eae
On 2016/08/05 01:24:06, Yosi_UTC9 wrote: > On 2016/08/04 at 18:04:47, eae wrote: > > Agreed. ...
4 years, 4 months ago (2016-08-11 21:50:47 UTC) #18
eae
PTAL
4 years, 4 months ago (2016-08-15 20:37:11 UTC) #21
yosin_UTC9
lgtm w/ nit; typo in a comment. https://codereview.chromium.org/2209513002/diff/40001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2209513002/diff/40001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1533 third_party/WebKit/Source/core/dom/Range.cpp:1533: // Exclude ...
4 years, 4 months ago (2016-08-16 01:37:02 UTC) #24
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/2209513002/60001
4 years, 4 months ago (2016-08-16 15:14:15 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-16 16:29:54 UTC) #29
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 16:31:34 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7b05ec36906acc9e75c2e06ab68bbd0aa8ba691c
Cr-Commit-Position: refs/heads/master@{#412263}

Powered by Google App Engine
This is Rietveld 408576698