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

Issue 150403003: Consider text alignment and direction when computing the left offset for horizontal writing modes. (Closed)

Created:
6 years, 10 months ago by mario.prada
Modified:
6 years, 10 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@issue313593
Visibility:
Public.

Description

Consider text alignment and direction when computing the left offset for horizontal writing modes. To properly layout a positioned box, we need to consider special cases where the direction of the text for that object flows towards the opposite direction the text inside that box would be aligned to (e.g. right aligned text for LTR boxes and left aligned text for RTL boxes). Not doing this this ways yields to undesired effects, such as having the absolutely positioned text inside a table cell with relative positioned being wrongly rendered outside of the cell. BUG=157539 TEST=Try rendering absolutely positioned text inside table cells with relative positioning. R=eae@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167732

Patch Set 1 #

Total comments: 6

Patch Set 2 : Now including the layout test (html) I forgot to add in the previous patch set #

Patch Set 3 : Addressing comments from the initial review #

Patch Set 4 : Adding the new test to TestExpectations as NeedsRebaseline #

Patch Set 5 : Rebased patch against master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -39 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/text-align-positioned-inside-table-cell.html View 1 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/platform/linux/fast/css/text-align-positioned-inside-table-cell-expected.png View Binary file 0 comments Download
A LayoutTests/platform/linux/fast/css/text-align-positioned-inside-table-cell-expected.txt View 1 chunk +90 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBlockLineLayout.cpp View 1 2 3 4 2 chunks +6 lines, -22 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 4 1 chunk +15 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBoxModelObject.cpp View 1 2 3 1 chunk +3 lines, -8 lines 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderText.cpp View 1 2 3 1 chunk +3 lines, -7 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
mario.prada
Attaching a patch + a new layout test that fixes the issue 157539 without breaking ...
6 years, 10 months ago (2014-01-30 18:24:39 UTC) #1
eae
This looks right to me but I'd like Eric or Levi to take a look. ...
6 years, 10 months ago (2014-01-30 18:38:27 UTC) #2
mario.prada
Now including the layout test (html) I forgot to add in the previous patch set
6 years, 10 months ago (2014-02-04 10:40:23 UTC) #3
mario.prada
https://codereview.chromium.org/150403003/diff/1/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/150403003/diff/1/Source/core/rendering/RenderBox.cpp#newcode3454 Source/core/rendering/RenderBox.cpp:3454: if (containerBlockIsLTR && containerBlock->simplifiedTextAlign(blockStyle->textAlign()) == RIGHT) { On 2014/01/30 ...
6 years, 10 months ago (2014-02-04 14:30:12 UTC) #4
mario.prada
Addressing comments from the initial review
6 years, 10 months ago (2014-02-04 16:59:38 UTC) #5
mario.prada
From the linux_layout bot: Regressions: Unexpected crashes (4) storage/quota/storageinfo-no-callbacks.html [ Crash ] storage/quota/storageinfo-request-quota.html [ Crash ...
6 years, 10 months ago (2014-02-06 14:18:10 UTC) #6
mario.prada
On 2014/02/06 14:18:10, mario.prada wrote: > From the linux_layout bot: > > Regressions: Unexpected crashes ...
6 years, 10 months ago (2014-02-06 16:03:16 UTC) #7
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline
6 years, 10 months ago (2014-02-13 20:20:09 UTC) #8
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline
6 years, 10 months ago (2014-02-13 20:20:11 UTC) #9
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline
6 years, 10 months ago (2014-02-13 20:20:11 UTC) #10
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline
6 years, 10 months ago (2014-02-13 20:20:12 UTC) #11
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline (second try)
6 years, 10 months ago (2014-02-13 20:30:22 UTC) #12
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline (second try)
6 years, 10 months ago (2014-02-13 20:30:23 UTC) #13
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline (second try)
6 years, 10 months ago (2014-02-13 20:30:25 UTC) #14
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline (second try)
6 years, 10 months ago (2014-02-13 20:30:27 UTC) #15
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline (third try)
6 years, 10 months ago (2014-02-13 20:38:31 UTC) #16
mario.prada
Adding the new test to TestExpectations as NeedsRebaseline
6 years, 10 months ago (2014-02-13 20:40:35 UTC) #17
mario.prada
On 2014/02/13 20:40:35, mario.prada wrote: > Adding the new test to TestExpectations as NeedsRebaseline Apologies ...
6 years, 10 months ago (2014-02-13 20:45:11 UTC) #18
eae
LGTM
6 years, 10 months ago (2014-02-14 10:22:55 UTC) #19
eae
The CQ bit was checked by eae@chromium.org
6 years, 10 months ago (2014-02-14 10:39:08 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mario.prada@samsung.com/150403003/220003
6 years, 10 months ago (2014-02-14 10:39:34 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 12:10:23 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=27288
6 years, 10 months ago (2014-02-14 12:10:23 UTC) #23
mario.prada
Rebased patch against master
6 years, 10 months ago (2014-02-14 16:37:25 UTC) #24
mario.prada
On 2014/02/14 16:37:25, mario.prada wrote: > Rebased patch against master By looking at the output ...
6 years, 10 months ago (2014-02-24 17:01:48 UTC) #25
eae
On 2014/02/24 17:01:48, mario.prada wrote: > On 2014/02/14 16:37:25, mario.prada wrote: > > Rebased patch ...
6 years, 10 months ago (2014-02-24 19:55:11 UTC) #26
eae
The CQ bit was checked by eae@chromium.org
6 years, 10 months ago (2014-02-24 19:55:17 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mario.prada@samsung.com/150403003/650001
6 years, 10 months ago (2014-02-24 19:55:28 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mario.prada@samsung.com/150403003/650001
6 years, 10 months ago (2014-02-25 01:04:36 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mario.prada@samsung.com/150403003/650001
6 years, 10 months ago (2014-02-25 05:16:30 UTC) #30
commit-bot: I haz the power
Change committed as 167732
6 years, 10 months ago (2014-02-25 06:45:16 UTC) #31
mario.prada
6 years, 10 months ago (2014-02-25 14:27:41 UTC) #32
Message was sent while issue was closed.
On 2014/02/25 06:45:16, I haz the power (commit-bot) wrote:
> Change committed as 167732

Thanks!

Powered by Google App Engine
This is Rietveld 408576698