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

Issue 580533002: Use PositionedMovementLayout for changes to positioned elements' margins (Closed)

Created:
6 years, 3 months ago by rhogan
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Use PositionedMovementLayout for changes to positioned elements' margins When a positioned element's margin changes it does not need to do a full layout. It can just repaint it's layer at the position the new margin moves it to. BUG=332860 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183415

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated #

Patch Set 3 : Initial #

Patch Set 4 : Updated #

Patch Set 5 : Updated test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -5 lines) Patch
A LayoutTests/fast/repaint/absolute-margin-change-repaint.html View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A + LayoutTests/fast/repaint/absolute-margin-change-repaint-expected.txt View 1 1 chunk +2 lines, -1 line 0 comments Download
A LayoutTests/fast/repaint/fixed-margin-change-repaint.html View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A + LayoutTests/fast/repaint/fixed-margin-change-repaint-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fast/repaint/relative-margin-change-repaint.html View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A + LayoutTests/fast/repaint/relative-margin-change-repaint-expected.txt View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 3 4 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
rhogan
6 years, 3 months ago (2014-09-23 17:51:44 UTC) #2
Julien - ping for review
https://codereview.chromium.org/580533002/diff/1/Source/core/rendering/style/RenderStyle.cpp File Source/core/rendering/style/RenderStyle.cpp (right): https://codereview.chromium.org/580533002/diff/1/Source/core/rendering/style/RenderStyle.cpp#newcode389 Source/core/rendering/style/RenderStyle.cpp:389: if (position() == AbsolutePosition || position() == FixedPosition) Shouldn't ...
6 years, 3 months ago (2014-09-23 19:53:51 UTC) #3
rhogan
https://codereview.chromium.org/580533002/diff/1/Source/core/rendering/style/RenderStyle.cpp File Source/core/rendering/style/RenderStyle.cpp (right): https://codereview.chromium.org/580533002/diff/1/Source/core/rendering/style/RenderStyle.cpp#newcode389 Source/core/rendering/style/RenderStyle.cpp:389: if (position() == AbsolutePosition || position() == FixedPosition) On ...
6 years, 3 months ago (2014-09-23 20:08:28 UTC) #4
Julien - ping for review
lgtm Do we need a test for relatively positioned element changing margins (especially vertical margins ...
6 years, 2 months ago (2014-10-02 23:29:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/580533002/80001
6 years, 2 months ago (2014-10-08 13:33:16 UTC) #7
commit-bot: I haz the power
6 years, 2 months ago (2014-10-08 14:37:37 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 183415

Powered by Google App Engine
This is Rietveld 408576698