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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 | 358 |
359 bool hadTransform = m_transform; | 359 bool hadTransform = m_transform; |
360 if (hasTransform != hadTransform) { | 360 if (hasTransform != hadTransform) { |
361 if (hasTransform) | 361 if (hasTransform) |
362 m_transform = adoptPtr(new TransformationMatrix); | 362 m_transform = adoptPtr(new TransformationMatrix); |
363 else | 363 else |
364 m_transform.clear(); | 364 m_transform.clear(); |
365 | 365 |
366 // DeprecatedPaintLayers with transforms act as clip rects roots, so cle
ar the cached clip rects here. | 366 // DeprecatedPaintLayers with transforms act as clip rects roots, so cle
ar the cached clip rects here. |
367 m_clipper.clearClipRectsIncludingDescendants(); | 367 m_clipper.clearClipRectsIncludingDescendants(); |
368 } else if (hasTransform) { | |
369 m_clipper.clearClipRectsIncludingDescendants(AbsoluteClipRects); | |
370 } | 368 } |
371 | 369 |
372 updateTransformationMatrix(); | 370 updateTransformationMatrix(); |
373 | 371 |
374 if (had3DTransform != has3DTransform()) | 372 if (had3DTransform != has3DTransform()) |
375 dirty3DTransformedDescendantStatus(); | 373 dirty3DTransformedDescendantStatus(); |
376 } | 374 } |
377 | 375 |
378 static DeprecatedPaintLayer* enclosingLayerForContainingBlock(DeprecatedPaintLay
er* layer) | 376 static DeprecatedPaintLayer* enclosingLayerForContainingBlock(DeprecatedPaintLay
er* layer) |
379 { | 377 { |
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2681 | 2679 |
2682 void showLayerTree(const blink::LayoutObject* layoutObject) | 2680 void showLayerTree(const blink::LayoutObject* layoutObject) |
2683 { | 2681 { |
2684 if (!layoutObject) { | 2682 if (!layoutObject) { |
2685 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2683 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
2686 return; | 2684 return; |
2687 } | 2685 } |
2688 showLayerTree(layoutObject->enclosingLayer()); | 2686 showLayerTree(layoutObject->enclosingLayer()); |
2689 } | 2687 } |
2690 #endif | 2688 #endif |
OLD | NEW |