OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 } | 250 } |
251 } | 251 } |
252 | 252 |
253 void Layer::updateLayerPositionRecursive() | 253 void Layer::updateLayerPositionRecursive() |
254 { | 254 { |
255 updateLayerPosition(); | 255 updateLayerPosition(); |
256 | 256 |
257 if (m_reflectionInfo) | 257 if (m_reflectionInfo) |
258 m_reflectionInfo->reflection()->layout(); | 258 m_reflectionInfo->reflection()->layout(); |
259 | 259 |
| 260 // FIXME(400589): We would like to do this in RenderLayerScrollableArea::upd
ateAfterLayout, |
| 261 // but it depends on the size computed by updateLayerPosition. |
| 262 if (m_scrollableArea) { |
| 263 if (ScrollAnimator* scrollAnimator = m_scrollableArea->existingScrollAni
mator()) |
| 264 scrollAnimator->updateAfterLayout(); |
| 265 } |
| 266 |
260 // FIXME: We should be able to remove this call because we don't care about | 267 // FIXME: We should be able to remove this call because we don't care about |
261 // any descendant-dependent flags, but code somewhere else is reading these | 268 // any descendant-dependent flags, but code somewhere else is reading these |
262 // flags and depending on us to update them. | 269 // flags and depending on us to update them. |
263 updateDescendantDependentFlags(); | 270 updateDescendantDependentFlags(); |
264 | 271 |
265 for (Layer* child = firstChild(); child; child = child->nextSibling()) | 272 for (Layer* child = firstChild(); child; child = child->nextSibling()) |
266 child->updateLayerPositionRecursive(); | 273 child->updateLayerPositionRecursive(); |
267 } | 274 } |
268 | 275 |
269 void Layer::updateHasSelfPaintingLayerDescendant() const | 276 void Layer::updateHasSelfPaintingLayerDescendant() const |
(...skipping 2659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2929 } | 2936 } |
2930 } | 2937 } |
2931 | 2938 |
2932 void showLayerTree(const blink::LayoutObject* renderer) | 2939 void showLayerTree(const blink::LayoutObject* renderer) |
2933 { | 2940 { |
2934 if (!renderer) | 2941 if (!renderer) |
2935 return; | 2942 return; |
2936 showLayerTree(renderer->enclosingLayer()); | 2943 showLayerTree(renderer->enclosingLayer()); |
2937 } | 2944 } |
2938 #endif | 2945 #endif |
OLD | NEW |