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 RenderLayer::updateLayerPositionRecursive() | 253 void RenderLayer::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 m_scrollableArea->scrollAnimator()->contentsResized(); | |
ajuma
2015/02/06 14:41:13
Calling scrollAnimator() will construct an animato
| |
264 | |
260 // FIXME: We should be able to remove this call because we don't care about | 265 // 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 | 266 // any descendant-dependent flags, but code somewhere else is reading these |
262 // flags and depending on us to update them. | 267 // flags and depending on us to update them. |
263 updateDescendantDependentFlags(); | 268 updateDescendantDependentFlags(); |
264 | 269 |
265 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) | 270 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) |
266 child->updateLayerPositionRecursive(); | 271 child->updateLayerPositionRecursive(); |
267 } | 272 } |
268 | 273 |
269 void RenderLayer::updateHasSelfPaintingLayerDescendant() const | 274 void RenderLayer::updateHasSelfPaintingLayerDescendant() const |
(...skipping 2656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2926 } | 2931 } |
2927 } | 2932 } |
2928 | 2933 |
2929 void showLayerTree(const blink::RenderObject* renderer) | 2934 void showLayerTree(const blink::RenderObject* renderer) |
2930 { | 2935 { |
2931 if (!renderer) | 2936 if (!renderer) |
2932 return; | 2937 return; |
2933 showLayerTree(renderer->enclosingLayer()); | 2938 showLayerTree(renderer->enclosingLayer()); |
2934 } | 2939 } |
2935 #endif | 2940 #endif |
OLD | NEW |