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

Issue 2763013002: Fix incorrect bounding box position for '\n' (Closed)

Created:
3 years, 9 months ago by wanchang
Modified:
3 years, 8 months ago
Reviewers:
kojii, eae, Xiaocheng
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, skobes, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix incorrect bounding box position for '\n' absoluteQuadsForRange function generates unrealted empty quads with even not overlapping InlineTextBox. This fix considers inclusive InlineTextbox, overlapping InlineTextbox, and exclusive InlineTextbox cases separately. Considering exclusive InlineTextbox is still required because non rendering characters(e.g. whitespace) are missing and to cover if range offset is only in this area. BUG=698038 Review-Url: https://codereview.chromium.org/2763013002 Cr-Commit-Position: refs/heads/master@{#460310} Committed: https://chromium.googlesource.com/chromium/src/+/19d5f8b3d7cd8ba33ba3f2dd331c339384b299dd

Patch Set 1 #

Patch Set 2 : Refactor to populate one vector. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/Range/getBoundingClientRect-linebreak-character.html View 1 chunk +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 4 chunks +37 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
wanchang
PTAL
3 years, 9 months ago (2017-03-21 12:44:11 UTC) #2
skobes
I'm not the best reviewer for this. Emil do you know this code (or who ...
3 years, 9 months ago (2017-03-21 20:59:45 UTC) #4
eae
Thanks for trying to fix this, I don't understand the difference that the nonRounded vs ...
3 years, 9 months ago (2017-03-21 21:06:52 UTC) #5
wanchang
On 2017/03/21 21:06:52, eae wrote: > Thanks for trying to fix this, I don't understand ...
3 years, 9 months ago (2017-03-22 07:23:10 UTC) #6
eae
That makes sense, thanks for the explanation. Would it be possible to refactor this to ...
3 years, 9 months ago (2017-03-24 18:21:07 UTC) #7
wanchang
On 2017/03/24 18:21:07, eae wrote: > That makes sense, thanks for the explanation. > Would ...
3 years, 9 months ago (2017-03-27 05:29:13 UTC) #8
eae
This is much easier to read, thank you. I'm still not sure about the logic ...
3 years, 8 months ago (2017-03-27 21:42:19 UTC) #10
kojii
lgtm, it looks like there's a room to refactor, but better interop with Gecko is ...
3 years, 8 months ago (2017-03-29 03:29:33 UTC) #11
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/2763013002/20001
3 years, 8 months ago (2017-03-29 04:15:10 UTC) #13
wanchang
On 2017/03/29 03:29:33, kojii wrote: > lgtm, it looks like there's a room to refactor, ...
3 years, 8 months ago (2017-03-29 04:18:33 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/19d5f8b3d7cd8ba33ba3f2dd331c339384b299dd
3 years, 8 months ago (2017-03-29 07:11:16 UTC) #17
Xiaocheng
3 years, 8 months ago (2017-03-31 18:02:18 UTC) #19
Message was sent while issue was closed.
This patch seems to have broken Range::textQuads.

Please see discussion in https://codereview.chromium.org/2775663008

Powered by Google App Engine
This is Rietveld 408576698