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

Side by Side Diff: Source/WebCore/rendering/RenderLayerCompositor.h

Issue 9405017: Merge 107024 - Properly detect top level frames when propogating compositing (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | Source/WebCore/rendering/RenderLayerCompositor.cpp » ('j') | 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 // Walk the tree looking for layers with 3d transforms. Useful in case you n eed 169 // Walk the tree looking for layers with 3d transforms. Useful in case you n eed
170 // to know if there is non-affine content, e.g. for drawing into an image. 170 // to know if there is non-affine content, e.g. for drawing into an image.
171 bool has3DContent() const; 171 bool has3DContent() const;
172 172
173 // Most platforms connect compositing layer trees between iframes and their parent document. 173 // Most platforms connect compositing layer trees between iframes and their parent document.
174 // Some (currently just Mac) allow iframes to do their own compositing. 174 // Some (currently just Mac) allow iframes to do their own compositing.
175 static bool allowsIndependentlyCompositedFrames(const FrameView*); 175 static bool allowsIndependentlyCompositedFrames(const FrameView*);
176 bool shouldPropagateCompositingToEnclosingFrame() const; 176 bool shouldPropagateCompositingToEnclosingFrame() const;
177 177
178 HTMLFrameOwnerElement* enclosingFrameElement() const;
179
180 static RenderLayerCompositor* frameContentsCompositor(RenderPart*); 178 static RenderLayerCompositor* frameContentsCompositor(RenderPart*);
181 // Return true if the layers changed. 179 // Return true if the layers changed.
182 static bool parentFrameContentLayers(RenderPart*); 180 static bool parentFrameContentLayers(RenderPart*);
183 181
184 // Update the geometry of the layers used for clipping and scrolling in fram es. 182 // Update the geometry of the layers used for clipping and scrolling in fram es.
185 void frameViewDidChangeLocation(const LayoutPoint& contentsOffset); 183 void frameViewDidChangeLocation(const LayoutPoint& contentsOffset);
186 void frameViewDidChangeSize(); 184 void frameViewDidChangeSize();
187 void frameViewDidScroll(const LayoutPoint& = LayoutPoint()); 185 void frameViewDidScroll(const LayoutPoint& = LayoutPoint());
188 186
189 String layerTreeAsText(bool showDebugInfo = false); 187 String layerTreeAsText(bool showDebugInfo = false);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 #endif 335 #endif
338 #if PROFILE_LAYER_REBUILD 336 #if PROFILE_LAYER_REBUILD
339 int m_rootLayerUpdateCount; 337 int m_rootLayerUpdateCount;
340 #endif 338 #endif
341 }; 339 };
342 340
343 341
344 } // namespace WebCore 342 } // namespace WebCore
345 343
346 #endif // RenderLayerCompositor_h 344 #endif // RenderLayerCompositor_h
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/rendering/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698