| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |