| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 // Modifies the top of the graphics layer tree to add layers needed to support | 270 // Modifies the top of the graphics layer tree to add layers needed to support |
| 271 // the inner/outer viewport fixed-position model for pinch zoom. When finished, | 271 // the inner/outer viewport fixed-position model for pinch zoom. When finished, |
| 272 // the tree will look like this (with * denoting added layers): | 272 // the tree will look like this (with * denoting added layers): |
| 273 // | 273 // |
| 274 // *rootTransformLayer | 274 // *rootTransformLayer |
| 275 // +- *innerViewportContainerLayer (fixed pos container) | 275 // +- *innerViewportContainerLayer (fixed pos container) |
| 276 // | +- *overscrollElasticityLayer | 276 // | +- *overscrollElasticityLayer |
| 277 // | +- *pageScaleLayer | 277 // | +- *pageScaleLayer |
| 278 // | +- *innerViewportScrollLayer | 278 // | +- *innerViewportScrollLayer |
| 279 // | +-- overflowControlsHostLayer (root layer) | 279 // | +-- overflowControlsHostLayer (root layer) [ owned by PaintL
ayerCompositor ] |
| 280 // | +-- outerViewportContainerLayer (fixed pos container) [f
rame container layer in PaintLayerCompositor] | 280 // | +-- outerViewportContainerLayer (fixed pos container) [f
rame container layer in PaintLayerCompositor] |
| 281 // | | +-- outerViewportScrollLayer [frame scroll layer in
PaintLayerCompositor] | 281 // | | +-- outerViewportScrollLayer [frame scroll layer in
PaintLayerCompositor] |
| 282 // | | +-- content layers ... | 282 // | | +-- content layers ... |
| 283 // +- horizontalScrollbarLayer | 283 // +- horizontalScrollbarLayer [ owned by PaintLayerCompositor ] |
| 284 // +- verticalScrollbarLayer | 284 // +- verticalScrollbarLayer [ owned by PaintLayerCompositor ] |
| 285 // +- scroll corner (non-overlay only) | 285 // +- scroll corner (non-overlay only) [ owned by PaintLayerCompositor ] |
| 286 // | 286 // |
| 287 void VisualViewport::attachToLayerTree(GraphicsLayer* currentLayerTreeRoot, Grap
hicsLayerFactory* graphicsLayerFactory) | 287 void VisualViewport::attachToLayerTree(GraphicsLayer* currentLayerTreeRoot, Grap
hicsLayerFactory* graphicsLayerFactory) |
| 288 { | 288 { |
| 289 TRACE_EVENT1("blink", "VisualViewport::attachToLayerTree", "currentLayerTree
Root", (bool)currentLayerTreeRoot); | 289 TRACE_EVENT1("blink", "VisualViewport::attachToLayerTree", "currentLayerTree
Root", (bool)currentLayerTreeRoot); |
| 290 if (!currentLayerTreeRoot) { | 290 if (!currentLayerTreeRoot) { |
| 291 if (m_innerViewportScrollLayer) | 291 if (m_innerViewportScrollLayer) |
| 292 m_innerViewportScrollLayer->removeAllChildren(); | 292 m_innerViewportScrollLayer->removeAllChildren(); |
| 293 return; | 293 return; |
| 294 } | 294 } |
| 295 | 295 |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 } else if (graphicsLayer == m_rootTransformLayer) { | 746 } else if (graphicsLayer == m_rootTransformLayer) { |
| 747 name = "Root Transform Layer"; | 747 name = "Root Transform Layer"; |
| 748 } else { | 748 } else { |
| 749 ASSERT_NOT_REACHED(); | 749 ASSERT_NOT_REACHED(); |
| 750 } | 750 } |
| 751 | 751 |
| 752 return name; | 752 return name; |
| 753 } | 753 } |
| 754 | 754 |
| 755 } // namespace blink | 755 } // namespace blink |
| OLD | NEW |