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

Issue 247803003: Remove assumption that null containerForRepaint assumes RenderView (Closed)

Created:
6 years, 8 months ago by leviw_travelin_and_unemployed
Modified:
6 years, 8 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, abarth-chromium, blink-layers+watch_chromium.org, jchaffraix+rendering, pdr., ojan, rune+blink
Visibility:
Public.

Description

Remove assumption that null containerForRepaint assumes RenderView Previously, when containerForRepaint was null, this would mean that either the renderer wasn't rooted, or its container for repaint was a non-composited RenderView. This patch changes containerForRepaint to only return null when the renderer isn't rooted, and to actually return the RenderView when that's the container. This allows many of the callsites to be simplified to not check for null, and removes the need of callers to understand the general assumption that null means RenderView. BUG=363699 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172531

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix zee nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -33 lines) Patch
M Source/core/frame/FrameView.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 6 chunks +8 lines, -15 lines 0 comments Download
M Source/core/rendering/RenderView.h View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/rendering/compositing/RenderLayerCompositor.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download
M Source/web/LinkHighlight.cpp View 1 chunk +4 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
leviw_travelin_and_unemployed
6 years, 8 months ago (2014-04-22 19:27:24 UTC) #1
ojan
lgtm <3 Please address comments before committing. https://codereview.chromium.org/247803003/diff/1/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/247803003/diff/1/Source/core/frame/FrameView.cpp#newcode709 Source/core/frame/FrameView.cpp:709: // FIXME: ...
6 years, 8 months ago (2014-04-23 02:07:30 UTC) #2
leviw_travelin_and_unemployed
The CQ bit was checked by leviw@chromium.org
6 years, 8 months ago (2014-04-24 00:48:08 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leviw@chromium.org/247803003/20001
6 years, 8 months ago (2014-04-24 00:48:28 UTC) #4
leviw_travelin_and_unemployed
Done done done! CQ powers activate!
6 years, 8 months ago (2014-04-24 00:48:37 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 01:22:15 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 8 months ago (2014-04-24 01:22:15 UTC) #7
leviw_travelin_and_unemployed
The CQ bit was checked by leviw@chromium.org
6 years, 8 months ago (2014-04-24 18:12:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leviw@chromium.org/247803003/20001
6 years, 8 months ago (2014-04-24 18:12:48 UTC) #9
commit-bot: I haz the power
6 years, 8 months ago (2014-04-24 18:43:28 UTC) #10
Message was sent while issue was closed.
Change committed as 172531

Powered by Google App Engine
This is Rietveld 408576698