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

Unified Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 317493002: Change FrameTree to return Frames instead of LocalFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: dcheng's comment addressed Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/TextAutosizer.cpp ('k') | Source/core/storage/StorageArea.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index 63fde4df9035d0412629df5f339747882d024dd2..109a95b79311523058e47af6e05ae6a39411530f 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -204,8 +204,10 @@ static RenderVideo* findFullscreenVideoRenderer(Document& document)
void RenderLayerCompositor::updateIfNeededRecursive()
{
- for (LocalFrame* child = m_renderView.frameView()->frame().tree().firstChild(); child; child = child->tree().nextSibling())
- child->contentRenderer()->compositor()->updateIfNeededRecursive();
+ for (Frame* child = m_renderView.frameView()->frame().tree().firstChild(); child; child = child->tree().nextSibling()) {
+ if (child->isLocalFrame())
+ toLocalFrame(child)->contentRenderer()->compositor()->updateIfNeededRecursive();
+ }
TRACE_EVENT0("blink_rendering", "RenderLayerCompositor::updateIfNeededRecursive");
@@ -225,8 +227,10 @@ void RenderLayerCompositor::updateIfNeededRecursive()
#if ASSERT_ENABLED
assertNoUnresolvedDirtyBits();
- for (LocalFrame* child = m_renderView.frameView()->frame().tree().firstChild(); child; child = child->tree().nextSibling())
- child->contentRenderer()->compositor()->assertNoUnresolvedDirtyBits();
+ for (Frame* child = m_renderView.frameView()->frame().tree().firstChild(); child; child = child->tree().nextSibling()) {
+ if (child->isLocalFrame())
+ toLocalFrame(child)->contentRenderer()->compositor()->assertNoUnresolvedDirtyBits();
+ }
#endif
}
« no previous file with comments | « Source/core/rendering/TextAutosizer.cpp ('k') | Source/core/storage/StorageArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698