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

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: add win/mac needsrebaselines 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
« no previous file with comments | « Source/core/rendering/RenderPart.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 return m_compositing; 140 return m_compositing;
141 } 141 }
142 142
143 void RenderLayerCompositor::setCompositingModeEnabled(bool enable) 143 void RenderLayerCompositor::setCompositingModeEnabled(bool enable)
144 { 144 {
145 if (enable == m_compositing) 145 if (enable == m_compositing)
146 return; 146 return;
147 147
148 m_compositing = enable; 148 m_compositing = enable;
149 149
150 // RenderPart::requiresAcceleratedCompositing is used to determine self-pain tingness
151 // and bases it's return value for frames on the m_compositing bit here.
152 if (HTMLFrameOwnerElement* ownerElement = m_renderView.document().ownerEleme nt()) {
153 if (RenderPart* renderer = ownerElement->renderPart())
154 renderer->layer()->updateSelfPaintingLayer();
155 }
156
150 if (m_compositing) 157 if (m_compositing)
151 ensureRootLayer(); 158 ensureRootLayer();
152 else 159 else
153 destroyRootLayer(); 160 destroyRootLayer();
154 161
155 notifyIFramesOfCompositingChange(); 162 notifyIFramesOfCompositingChange();
156 } 163 }
157 164
158 void RenderLayerCompositor::enableCompositingModeIfNeeded() 165 void RenderLayerCompositor::enableCompositingModeIfNeeded()
159 { 166 {
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 } else if (graphicsLayer == m_scrollLayer.get()) { 1395 } else if (graphicsLayer == m_scrollLayer.get()) {
1389 name = "LocalFrame Scrolling Layer"; 1396 name = "LocalFrame Scrolling Layer";
1390 } else { 1397 } else {
1391 ASSERT_NOT_REACHED(); 1398 ASSERT_NOT_REACHED();
1392 } 1399 }
1393 1400
1394 return name; 1401 return name;
1395 } 1402 }
1396 1403
1397 } // namespace WebCore 1404 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderPart.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698