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

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 302083002: Always give RenderParts a RenderLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return m_compositing; 142 return m_compositing;
143 } 143 }
144 144
145 void RenderLayerCompositor::setCompositingModeEnabled(bool enable) 145 void RenderLayerCompositor::setCompositingModeEnabled(bool enable)
146 { 146 {
147 if (enable == m_compositing) 147 if (enable == m_compositing)
148 return; 148 return;
149 149
150 m_compositing = enable; 150 m_compositing = enable;
151 151
152 // RenderPart::requiresAcceleratedCompositing is used to determine self-pain tingness
153 // and bases it's return value for frames on the m_compositing bit here.
154 if (HTMLFrameOwnerElement* ownerElement = m_renderView.document().ownerEleme nt()) {
155 if (RenderPart* renderer = ownerElement->renderPart())
156 renderer->layer()->updateSelfPaintingLayer();
157 }
158
152 if (m_compositing) 159 if (m_compositing)
153 ensureRootLayer(); 160 ensureRootLayer();
154 else 161 else
155 destroyRootLayer(); 162 destroyRootLayer();
156 163
157 notifyIFramesOfCompositingChange(); 164 notifyIFramesOfCompositingChange();
158 } 165 }
159 166
160 void RenderLayerCompositor::enableCompositingModeIfNeeded() 167 void RenderLayerCompositor::enableCompositingModeIfNeeded()
161 { 168 {
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 } else if (graphicsLayer == m_scrollLayer.get()) { 1425 } else if (graphicsLayer == m_scrollLayer.get()) {
1419 name = "LocalFrame Scrolling Layer"; 1426 name = "LocalFrame Scrolling Layer";
1420 } else { 1427 } else {
1421 ASSERT_NOT_REACHED(); 1428 ASSERT_NOT_REACHED();
1422 } 1429 }
1423 1430
1424 return name; 1431 return name;
1425 } 1432 }
1426 1433
1427 } // namespace WebCore 1434 } // namespace WebCore
OLDNEW
« Source/core/rendering/RenderEmbeddedObject.cpp ('K') | « Source/core/rendering/RenderPart.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698