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

Issue 43873004: Relayout RenderObjects with viewport-percentage CSS properties when viewport size changes (Closed)

Created:
7 years, 1 month ago by Xianzhu
Modified:
7 years, 1 month ago
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, zoltan1
Visibility:
Public.

Description

Relayout RenderObjects with viewport-percentage CSS properties when viewport size changes Previously if a RenderObject with viewport-percentage CSS properties is under another RenderObject which doesn't need to relayout, when the viewport size changes, the former doesn't relayout. Relayout of viewport-percentage style objects can't depend on the top-down hierachy but must be triggered by the RenderView when viewport size changes. Let RenderView manage a list of objects that may have viewport-percentage style. This will also simplify the top-down relayout process that is needed for bug 310875. BUG=310874 TEST=fast/css/viewport-percentage-relayout.html

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -17 lines) Patch
A LayoutTests/fast/css/resources/viewport-percentage-relayout-frame.html View 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/resources/viewport-percentage-relayout-frame-expected.html View 1 chunk +4 lines, -0 lines 1 comment Download
A LayoutTests/fast/css/viewport-percentage-relayout.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/viewport-percentage-relayout-expected.html View 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 2 chunks +14 lines, -0 lines 1 comment Download
M Source/core/rendering/RenderView.h View 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderView.cpp View 2 chunks +21 lines, -4 lines 1 comment Download
M Source/core/rendering/style/RenderStyle.h View 9 chunks +46 lines, -4 lines 2 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 4 chunks +3 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Xianzhu
7 years, 1 month ago (2013-10-25 19:29:35 UTC) #1
leviw_travelin_and_unemployed
This looks okay to me, but I'm adding a couple other folks to take a ...
7 years, 1 month ago (2013-10-25 20:30:35 UTC) #2
esprehn
Why not handle this inside style resolve? We need to re-eval media queries when the ...
7 years, 1 month ago (2013-10-25 22:25:51 UTC) #3
Xianzhu
On 2013/10/25 22:25:51, esprehn wrote: > Why not handle this inside style resolve? We need ...
7 years, 1 month ago (2013-10-25 22:36:07 UTC) #4
esprehn
On 2013/10/25 22:36:07, Xianzhu wrote: > On 2013/10/25 22:25:51, esprehn wrote: > > Why not ...
7 years, 1 month ago (2013-10-26 00:04:01 UTC) #5
Timothy Loh
While this approach is an incremental improvement to our viewport unit support, I'm not sure ...
7 years, 1 month ago (2013-10-26 00:08:56 UTC) #6
esprehn
7 years, 1 month ago (2013-10-26 00:12:04 UTC) #7
On 2013/10/26 00:08:56, Timothy Loh wrote:
> ...I'm not sure if it's worthwhile to improve the current system
> where we resolve at layout time, instead of fixing everything at once. WDYT?

I agree. Lets not do this bandaid, I'd rather we just worked to getting viewport
units working properly.

not lgtm on this patch.

Powered by Google App Engine
This is Rietveld 408576698