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

Issue 18374008: Propagate writing-mode from the first region to the flow thread. (Closed)

Created:
7 years, 5 months ago by mstensho (USE GERRIT)
Modified:
7 years, 4 months ago
Reviewers:
esprehn
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, chromiumbugtracker_adobe.com, leviw+renderwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Propagate writing-mode from the first region to the flow thread. Since the flow thread is a direct child of RenderView, it doesn't inherit proper writing-mode automatically. It should be mentioned that if the thread's contents' writing-mode differs from that of the first region, things are typically going to look useless (although perhaps that's how it should be), but as long as writing-mode is only specified on a common parent of the thread's contents and the regions, things look fine, and also, we're now following what the spec has to say on the matter: http://www.w3.org/TR/2013/WD-css3-regions-20130528/#the-flow-into-property "The first region defines the principal writing mode for the entire flow. The writing mode on subsequent regions is ignored." BUG=257965 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155779

Patch Set 1 #

Total comments: 2

Patch Set 2 : Code review #

Total comments: 6

Patch Set 3 : Rebase master #

Patch Set 4 : Address minor issues raised together with the LGTM. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+535 lines, -1 line) Patch
A LayoutTests/fast/regions/changing-writing-mode.html View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/changing-writing-mode-2.html View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/changing-writing-mode-2-expected.html View 1 1 chunk +41 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/changing-writing-mode-3.html View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/changing-writing-mode-3-expected.html View 1 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/changing-writing-mode-4.html View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/changing-writing-mode-4-expected.html View 1 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/changing-writing-mode-5.html View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/changing-writing-mode-5-expected.html View 1 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/changing-writing-mode-expected.html View 1 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/subtree-with-horiz-bt.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/subtree-with-horiz-bt-expected.html View 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/subtree-with-horiz-tb.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/subtree-with-horiz-tb-expected.html View 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/subtree-with-vert-lr.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/subtree-with-vert-lr-expected.html View 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/subtree-with-vert-rl.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/regions/subtree-with-vert-rl-expected.html View 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderFlowThread.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderFlowThread.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderNamedFlowThread.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderNamedFlowThread.cpp View 1 2 4 chunks +24 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderRegion.cpp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
mstensho (USE GERRIT)
7 years, 5 months ago (2013-07-08 10:00:20 UTC) #1
mstensho (USE GERRIT)
7 years, 5 months ago (2013-07-08 10:00:25 UTC) #2
mstensho (USE GERRIT)
@pfeldman: would you be the right person to review this, or should I choose someone ...
7 years, 5 months ago (2013-07-24 20:54:24 UTC) #3
pfeldman
Sorry for the delay. No, I am not the right person. I cover inspector-related work.
7 years, 4 months ago (2013-07-29 21:54:09 UTC) #4
mihnea
(this is an informal review, feel free to ignore it) 1. Have you tested what ...
7 years, 4 months ago (2013-07-30 15:50:44 UTC) #5
mihnea
(this is an informal review, feel free to ignore it) 1. Have you tested what ...
7 years, 4 months ago (2013-07-30 15:51:58 UTC) #6
mstensho (USE GERRIT)
On 2013/07/30 15:51:58, mihnea wrote: > (this is an informal review, feel free to ignore ...
7 years, 4 months ago (2013-07-30 19:36:20 UTC) #7
mstensho (USE GERRIT)
Changing reviewer to apavlov. Hope that's better. https://codereview.chromium.org/18374008/diff/1/Source/core/rendering/RenderNamedFlowThread.cpp File Source/core/rendering/RenderNamedFlowThread.cpp (right): https://codereview.chromium.org/18374008/diff/1/Source/core/rendering/RenderNamedFlowThread.cpp#newcode95 Source/core/rendering/RenderNamedFlowThread.cpp:95: if (m_regionList.isEmpty()) ...
7 years, 4 months ago (2013-07-31 13:09:37 UTC) #8
mihnea
On 2013/07/31 13:09:37, Morten Stenshorne wrote: > Changing reviewer to apavlov. Hope that's better. > ...
7 years, 4 months ago (2013-08-01 06:10:54 UTC) #9
apavlov
On 2013/08/01 06:10:54, mihnea wrote: > On 2013/07/31 13:09:37, Morten Stenshorne wrote: > > Changing ...
7 years, 4 months ago (2013-08-01 08:22:33 UTC) #10
mstensho (USE GERRIT)
7 years, 4 months ago (2013-08-01 08:56:31 UTC) #11
esprehn
I'll review this tomorrow, sorry for the delay.
7 years, 4 months ago (2013-08-07 05:23:41 UTC) #12
esprehn
LGTM, please fix the tests to use getElementById and the argument name before landing. https://codereview.chromium.org/18374008/diff/10001/LayoutTests/fast/regions/changing-writing-mode-5.html ...
7 years, 4 months ago (2013-08-08 03:10:38 UTC) #13
mstensho (USE GERRIT)
https://codereview.chromium.org/18374008/diff/10001/LayoutTests/fast/regions/changing-writing-mode-5.html File LayoutTests/fast/regions/changing-writing-mode-5.html (right): https://codereview.chromium.org/18374008/diff/10001/LayoutTests/fast/regions/changing-writing-mode-5.html#newcode43 LayoutTests/fast/regions/changing-writing-mode-5.html:43: firstregion.style.display = 'block'; On 2013/08/08 03:10:39, esprehn wrote: > ...
7 years, 4 months ago (2013-08-08 06:51:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/18374008/26001
7 years, 4 months ago (2013-08-08 08:46:26 UTC) #15
commit-bot: I haz the power
Change committed as 155779
7 years, 4 months ago (2013-08-08 15:59:40 UTC) #16
mihnea
On 2013/08/08 06:51:50, Morten Stenshorne wrote: > https://codereview.chromium.org/18374008/diff/10001/LayoutTests/fast/regions/changing-writing-mode-5.html > File LayoutTests/fast/regions/changing-writing-mode-5.html (right): > > https://codereview.chromium.org/18374008/diff/10001/LayoutTests/fast/regions/changing-writing-mode-5.html#newcode43 ...
7 years, 4 months ago (2013-08-13 13:44:12 UTC) #17
mstensho (USE GERRIT)
> Hi, > Would you consider adding this functionality back to WebKit? > Cheers, Sure! ...
7 years, 4 months ago (2013-08-13 15:33:01 UTC) #18
mihnea
On 2013/08/13 15:33:01, Morten Stenshorne wrote: > > Hi, > > Would you consider adding ...
7 years, 4 months ago (2013-08-14 12:06:29 UTC) #19
mstensho (USE GERRIT)
On 2013/08/14 12:06:29, mihnea wrote: > On 2013/08/13 15:33:01, Morten Stenshorne wrote: > > > ...
7 years, 4 months ago (2013-08-16 13:11:50 UTC) #20
mstensho (USE GERRIT)
7 years, 4 months ago (2013-08-19 18:51:37 UTC) #21
Message was sent while issue was closed.
On 2013/08/16 13:11:50, Morten Stenshorne wrote:
> On 2013/08/14 12:06:29, mihnea wrote:
> > On 2013/08/13 15:33:01, Morten Stenshorne wrote:
> > > > Hi,
> > > > Would you consider adding this functionality back to WebKit?
> > > > Cheers,
> > > 
> > > Sure! Can you suggest a reviewer?
> > 
> > David Hyatt
> 
> https://bugs.webkit.org/show_bug.cgi?id=119795

That patch has landed, but additional issues were raised and handled during code
review. I've ported them back to Blink:
https://codereview.chromium.org/23064019/

Powered by Google App Engine
This is Rietveld 408576698