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

Issue 145083009: Remove unnecessary repaint from line layout and cleanup logic (Closed)

Created:
6 years, 11 months ago by leviw_travelin_and_unemployed
Modified:
6 years, 10 months ago
Reviewers:
eseidel, Zoltan, eae, ojan
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Visibility:
Public.

Description

Remove unnecessary repaint from line layout and cleanup logic In the beforetime, it apparently made sense to use the cached repaint rect from RenderLayer directly within line layout code to ensure we got repainted. We now properly repaint ourself in this case without having to rely on reaching directly into our layer for the info. While I'm in the code, I'm moving the logic to mark ourself as needing layout to ensure we trigger a repaint of ourself to determineStartPosition (since it's responsible for marking the block for full layout to begin with), and moving the hasInlineChild optimization to LineLayoutState. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165800

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -28 lines) Patch
M Source/core/rendering/RenderBlockFlow.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBlockLineLayout.cpp View 5 chunks +8 lines, -27 lines 2 comments Download
M Source/core/rendering/line/LineLayoutState.h View 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
leviw_travelin_and_unemployed
6 years, 11 months ago (2014-01-23 23:41:45 UTC) #1
eae
LGTM
6 years, 11 months ago (2014-01-24 18:57:38 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leviw@chromium.org/145083009/1
6 years, 11 months ago (2014-01-24 18:58:24 UTC) #3
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=24012
6 years, 11 months ago (2014-01-24 21:55:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leviw@chromium.org/145083009/1
6 years, 11 months ago (2014-01-24 21:59:37 UTC) #5
commit-bot: I haz the power
Change committed as 165800
6 years, 11 months ago (2014-01-25 00:19:26 UTC) #6
ojan
https://codereview.chromium.org/145083009/diff/1/Source/core/rendering/RenderBlockLineLayout.cpp File Source/core/rendering/RenderBlockLineLayout.cpp (right): https://codereview.chromium.org/145083009/diff/1/Source/core/rendering/RenderBlockLineLayout.cpp#newcode1680 Source/core/rendering/RenderBlockLineLayout.cpp:1680: setNeedsLayout(MarkOnlyThis); Why do this instead of calling repaint directly? ...
6 years, 10 months ago (2014-01-28 20:55:23 UTC) #7
leviw_travelin_and_unemployed
6 years, 10 months ago (2014-01-28 21:42:31 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/145083009/diff/1/Source/core/rendering/Render...
File Source/core/rendering/RenderBlockLineLayout.cpp (right):

https://codereview.chromium.org/145083009/diff/1/Source/core/rendering/Render...
Source/core/rendering/RenderBlockLineLayout.cpp:1680:
setNeedsLayout(MarkOnlyThis);
On 2014/01/28 20:55:23, ojan wrote:
> Why do this instead of calling repaint directly? Doesn't forcing a layout
cause
> use to do a bunch of extra layout work?

Perhaps this can be further optimized, but this isn't a change from the previous
codepath. The previous comment suggests this is necessary for regions.

Powered by Google App Engine
This is Rietveld 408576698