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

Issue 998263002: range.getBoundingClientRect() returns incorrect value for collapsed ranges (Closed)

Created:
5 years, 9 months ago by Abhijeet Kandalkar Slow
Modified:
5 years, 9 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

range.getBoundingClientRect() returns incorrect value for collapsed ranges Current implementation returns empty rectangle if either width or height is zero. But as per W3C specification [1], getBoundingClientRect() should return union of rectangles of which the height or width is not zero. [1] http://www.w3.org/TR/cssom-view/#dom-range-getclientrects BUG=435438 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192699

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -2 lines) Patch
M LayoutTests/TestExpectations View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Range/getBoundingClientRect-caret.html View 1 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Range/getBoundingClientRect-caret-expected.txt View 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/dom/Range.cpp View 1 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
Abhijeet Kandalkar Slow
Please review changes.
5 years, 9 months ago (2015-03-12 12:31:19 UTC) #2
eae
https://codereview.chromium.org/998263002/diff/1/Source/core/dom/Range.cpp File Source/core/dom/Range.cpp (right): https://codereview.chromium.org/998263002/diff/1/Source/core/dom/Range.cpp#newcode1791 Source/core/dom/Range.cpp:1791: result = quad.boundingBox(); This doesn't seem right, if the ...
5 years, 9 months ago (2015-03-19 20:52:21 UTC) #3
Abhijeet Kandalkar Slow
Incorporated review commenets. Please have look. https://codereview.chromium.org/998263002/diff/1/Source/core/dom/Range.cpp File Source/core/dom/Range.cpp (right): https://codereview.chromium.org/998263002/diff/1/Source/core/dom/Range.cpp#newcode1791 Source/core/dom/Range.cpp:1791: result = quad.boundingBox(); ...
5 years, 9 months ago (2015-03-20 07:48:47 UTC) #4
eae
LGTM, thanks
5 years, 9 months ago (2015-03-20 15:37:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/998263002/20001
5 years, 9 months ago (2015-03-20 15:46:59 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/55954)
5 years, 9 months ago (2015-03-20 18:35:56 UTC) #9
Abhijeet Kandalkar Slow
On 2015/03/20 18:35:56, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 9 months ago (2015-03-23 09:54:11 UTC) #10
Abhijeet Kandalkar Gmail
Hi eae, Please have look of latest patch. - As development platform was Linux, added ...
5 years, 9 months ago (2015-03-27 12:35:12 UTC) #12
eae
LGTM
5 years, 9 months ago (2015-03-27 18:58:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/998263002/40001
5 years, 9 months ago (2015-03-27 19:13:24 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=192699
5 years, 9 months ago (2015-03-27 21:01:25 UTC) #16
Peter Kasting
5 years, 9 months ago (2015-03-28 03:00:33 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1044593002/ by pkasting@chromium.org.

The reason for reverting is: Seems to have broken
CvoxShadowUnitTest.MultilineWrap in the chromevox_tests..

Powered by Google App Engine
This is Rietveld 408576698