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

Issue 18254006: Repaint issues with vertical text which has absolute (or fixed) position specified for it. (Closed)

Created:
7 years, 5 months ago by arpitab_
Modified:
6 years, 5 months ago
CC:
blink-reviews, dglazkov+blink, dsinclair, eae+blinkwatch, esprehn, jchaffraix+rendering, Julien - ping for review, leviw+renderwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Repaint issues with vertical text which has absolute (or fixed) position specified for it. For a writing mode root editable box which is absolute (or fixed) positioned and which contains vertically aligned text within, trying to either insert a paragraph in-between the text or trying to select part of the text does not visually manifest the expected behavior. An extra repaint is required to demonstrate the expected behavior. This occurs because the repaint rect being computed in case of absolutely or fixed positioned writing mode editable roots is not flipping the rect as per the writing mode. Removed the extra condition check for writing mode root box that flipped the computed rect (based on the writing mode) only if the renderer was not absolute (or fixed) positioned. R=leviw@chromium.org,eseidel@chromium.org,ojan@chromium.org BUG=259352, 230580 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177870

Patch Set 1 #

Total comments: 13

Patch Set 2 : Updated patch #

Patch Set 3 : Adding entry in TestExpectations #

Total comments: 1

Patch Set 4 : Fixing nit in testcase #

Total comments: 7

Patch Set 5 : Modifying testcase as per review comments #

Total comments: 2

Patch Set 6 : Removing the extra check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -3 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/repaint-rect-for-vertical-writing-mode-with-positioned-root.html View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A + LayoutTests/platform/linux/editing/selection/repaint-rect-for-vertical-writing-mode-with-positioned-root-expected.txt View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
arpitab_
7 years, 5 months ago (2013-07-12 10:06:26 UTC) #1
ojan
The C++ change seems reasonable assuming the trybots say all the tests pass. Please minimize ...
7 years, 5 months ago (2013-07-15 23:54:12 UTC) #2
arpitab_
https://codereview.chromium.org/18254006/diff/1/LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html File LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html (right): https://codereview.chromium.org/18254006/diff/1/LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html#newcode16 LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html:16: outline-style: none; On 2013/07/15 23:54:12, ojan wrote: > This ...
7 years, 4 months ago (2013-08-08 14:22:30 UTC) #3
yosin_UTC9
https://codereview.chromium.org/18254006/diff/1/LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html File LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html (right): https://codereview.chromium.org/18254006/diff/1/LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html#newcode36 LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html:36: window.setTimeout(logRepaints, 200); Can we call logRepaints until test condition ...
7 years, 3 months ago (2013-09-10 02:20:14 UTC) #4
ojan
https://codereview.chromium.org/18254006/diff/1/LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html File LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html (right): https://codereview.chromium.org/18254006/diff/1/LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html#newcode20 LayoutTests/editing/inserting/insert-paragraph-between-vertical-text-with-positioned-root.html:20: line-height: 1; On 2013/08/08 14:22:30, arpitab_ wrote: > On ...
7 years, 3 months ago (2013-09-12 23:40:15 UTC) #5
arpitabahuguna
@leviw, @ojan, @yosin have uploaded an updated patch for this issue. The repaint layout test ...
6 years, 5 months ago (2014-07-01 09:04:23 UTC) #6
arpitabahuguna
ping..
6 years, 5 months ago (2014-07-03 04:45:55 UTC) #7
arpitab_
Sorry, I forgot to add an entry for the layout testcase in the TestExpectations file. ...
6 years, 5 months ago (2014-07-03 08:13:33 UTC) #8
yosin_UTC9
LGTM Please wait for OWNERS review for committing. https://codereview.chromium.org/18254006/diff/38001/LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html File LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html (right): https://codereview.chromium.org/18254006/diff/38001/LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html#newcode20 LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html:20: var ...
6 years, 5 months ago (2014-07-04 01:13:09 UTC) #9
arpitab_
Thank-you for the review @Yosin! Have uploaded another patch that takes care of the nit. ...
6 years, 5 months ago (2014-07-04 08:53:51 UTC) #10
arpitab_
@ojan, @eseidel This needs an owner's review. Please take a look.
6 years, 5 months ago (2014-07-04 08:55:57 UTC) #11
arpitab_
Awaiting an owner's review.
6 years, 5 months ago (2014-07-08 05:15:22 UTC) #12
eseidel
leviw is really the correct reviewer, but it seems he's out. lgtm.
6 years, 5 months ago (2014-07-08 15:45:20 UTC) #13
ojan
https://codereview.chromium.org/18254006/diff/58001/LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html File LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html (right): https://codereview.chromium.org/18254006/diff/58001/LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html#newcode3 LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html:3: <head> Please remove the html and head element as ...
6 years, 5 months ago (2014-07-08 23:53:30 UTC) #14
leviw_travelin_and_unemployed
On 2014/07/08 at 23:53:30, ojan wrote: > https://codereview.chromium.org/18254006/diff/58001/LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html#newcode26 > LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html:26: document.execCommand("InsertParagraph"); > execCommands and selections ...
6 years, 5 months ago (2014-07-09 00:34:18 UTC) #15
arpitab_
Thanks for the review ojan and leviw! Have uploaded another patch incorporating the review comments. ...
6 years, 5 months ago (2014-07-09 13:57:26 UTC) #16
ojan
https://codereview.chromium.org/18254006/diff/78001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/18254006/diff/78001/Source/core/rendering/RenderBox.cpp#newcode2025 Source/core/rendering/RenderBox.cpp:2025: if (isWritingModeRoot() && style()->isFlippedBlocksWritingMode()) flipForWritingMode already has an early ...
6 years, 5 months ago (2014-07-09 17:23:08 UTC) #17
arpitab_
Thanks for the review ojan. Have uploaded another patch. PTAL https://codereview.chromium.org/18254006/diff/78001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/18254006/diff/78001/Source/core/rendering/RenderBox.cpp#newcode2025 ...
6 years, 5 months ago (2014-07-10 13:17:15 UTC) #18
ojan
lgtm
6 years, 5 months ago (2014-07-10 17:52:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a.bah@samsung.com/18254006/98001
6 years, 5 months ago (2014-07-10 17:52:37 UTC) #20
commit-bot: I haz the power
Change committed as 177870
6 years, 5 months ago (2014-07-10 18:58:04 UTC) #21
leviw_travelin_and_unemployed
6 years, 5 months ago (2014-07-15 20:56:30 UTC) #22
Message was sent while issue was closed.
This exposes some bugs in our invalidation logic. If you disable the
PaintInvalidationState optimization (forcing this code to always be exercised),
we fail a bunch of tests.

crbug.com/393762

Powered by Google App Engine
This is Rietveld 408576698