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

Issue 2792953002: Fix unexpected erasing textQuad (Closed)

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

Description

Fix unexpected erasing textQuad LayoutText::absoluteQuadsForRange erases quads which given by the argument. This is unexpected behavior. To fix this issue when given quads is not empty, just skip adding bounds of box which is not in range offset without clearing previous quads. BUG=707627 Review-Url: https://codereview.chromium.org/2792953002 Cr-Commit-Position: refs/heads/master@{#461681} Committed: https://chromium.googlesource.com/chromium/src/+/7aab680a20f88c816877a06dcfee33eadb732e1c

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix unexpected erasing textQuad #

Patch Set 3 : A test is added. #

Patch Set 4 : refactoring to more straight-forward way #

Patch Set 5 : rollback to patchset3 with gtest #

Patch Set 6 : comment added. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
M third_party/WebKit/Source/core/dom/RangeTest.cpp View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
wanchang
PTAL.
3 years, 8 months ago (2017-04-03 10:16:26 UTC) #2
mstensho (USE GERRIT)
Needs a test. As for the correctness of the code changes, I cannot really judge. ...
3 years, 8 months ago (2017-04-03 11:16:35 UTC) #4
wanchang
I also added missing code. I will prepare a test case. Thanks. https://codereview.chromium.org/2792953002/diff/1/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp ...
3 years, 8 months ago (2017-04-03 11:43:36 UTC) #5
kojii
Hmm...I see, this will fix the problem, but this also undoes what you fixed if ...
3 years, 8 months ago (2017-04-03 12:39:45 UTC) #6
kojii
3 years, 8 months ago (2017-04-03 12:40:47 UTC) #7
kojii
Oh, you submitted new patch before I replied. This test looks good, so the gtest ...
3 years, 8 months ago (2017-04-03 13:07:36 UTC) #10
wanchang
On 2017/04/03 12:39:45, kojii wrote: > Hmm...I see, this will fix the problem, but this ...
3 years, 8 months ago (2017-04-03 13:21:25 UTC) #11
kojii
On 2017/04/03 at 13:21:25, wanchang.ryu wrote: > Thanks for comment kojii. > This patch doesn't ...
3 years, 8 months ago (2017-04-03 13:31:33 UTC) #12
wanchang
Thanks kind comments. On 2017/04/03 13:31:33, kojii wrote: > On 2017/04/03 at 13:21:25, wanchang.ryu wrote: ...
3 years, 8 months ago (2017-04-04 07:41:00 UTC) #15
kojii
Thank you for working on this, in this depth. I'd like to separate fixing the ...
3 years, 8 months ago (2017-04-04 08:05:39 UTC) #16
wanchang
On 2017/04/04 08:05:39, kojii wrote: > Thank you for working on this, in this depth. ...
3 years, 8 months ago (2017-04-04 08:18:14 UTC) #17
kojii
On 2017/04/04 at 08:18:14, wanchang.ryu wrote: > I see, kojii. > I will parepare pachset ...
3 years, 8 months ago (2017-04-04 08:26:19 UTC) #18
wanchang
On 2017/04/04 08:26:19, kojii wrote: > On 2017/04/04 at 08:18:14, wanchang.ryu wrote: > > I ...
3 years, 8 months ago (2017-04-04 08:31:41 UTC) #19
kojii
lgtm, thank you for your quick work again.
3 years, 8 months ago (2017-04-04 08:48:50 UTC) #22
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/2792953002/100001
3 years, 8 months ago (2017-04-04 10:56:15 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 11:00:57 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/7aab680a20f88c816877a06dcfee...

Powered by Google App Engine
This is Rietveld 408576698