| OLD | NEW |
| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 // Walk the tree looking for layers with 3d transforms. Useful in case you n
eed | 172 // Walk the tree looking for layers with 3d transforms. Useful in case you n
eed |
| 173 // to know if there is non-affine content, e.g. for drawing into an image. | 173 // to know if there is non-affine content, e.g. for drawing into an image. |
| 174 bool has3DContent() const; | 174 bool has3DContent() const; |
| 175 | 175 |
| 176 // Most platforms connect compositing layer trees between iframes and their
parent document. | 176 // Most platforms connect compositing layer trees between iframes and their
parent document. |
| 177 // Some (currently just Mac) allow iframes to do their own compositing. | 177 // Some (currently just Mac) allow iframes to do their own compositing. |
| 178 static bool allowsIndependentlyCompositedFrames(const FrameView*); | 178 static bool allowsIndependentlyCompositedFrames(const FrameView*); |
| 179 bool shouldPropagateCompositingToEnclosingFrame() const; | 179 bool shouldPropagateCompositingToEnclosingFrame() const; |
| 180 | 180 |
| 181 HTMLFrameOwnerElement* enclosingFrameElement() const; | |
| 182 | |
| 183 static RenderLayerCompositor* frameContentsCompositor(RenderPart*); | 181 static RenderLayerCompositor* frameContentsCompositor(RenderPart*); |
| 184 // Return true if the layers changed. | 182 // Return true if the layers changed. |
| 185 static bool parentFrameContentLayers(RenderPart*); | 183 static bool parentFrameContentLayers(RenderPart*); |
| 186 | 184 |
| 187 // Update the geometry of the layers used for clipping and scrolling in fram
es. | 185 // Update the geometry of the layers used for clipping and scrolling in fram
es. |
| 188 void frameViewDidChangeLocation(const LayoutPoint& contentsOffset); | 186 void frameViewDidChangeLocation(const LayoutPoint& contentsOffset); |
| 189 void frameViewDidChangeSize(); | 187 void frameViewDidChangeSize(); |
| 190 void frameViewDidScroll(const LayoutPoint& = LayoutPoint()); | 188 void frameViewDidScroll(const LayoutPoint& = LayoutPoint()); |
| 191 | 189 |
| 192 String layerTreeAsText(bool showDebugInfo = false); | 190 String layerTreeAsText(bool showDebugInfo = false); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 #endif | 340 #endif |
| 343 #if PROFILE_LAYER_REBUILD | 341 #if PROFILE_LAYER_REBUILD |
| 344 int m_rootLayerUpdateCount; | 342 int m_rootLayerUpdateCount; |
| 345 #endif | 343 #endif |
| 346 }; | 344 }; |
| 347 | 345 |
| 348 | 346 |
| 349 } // namespace WebCore | 347 } // namespace WebCore |
| 350 | 348 |
| 351 #endif // RenderLayerCompositor_h | 349 #endif // RenderLayerCompositor_h |
| OLD | NEW |