| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 return; | 404 return; |
| 405 | 405 |
| 406 // hasTransform() on the layoutObject is also true when there is transform-s
tyle: preserve-3d or perspective set, | 406 // hasTransform() on the layoutObject is also true when there is transform-s
tyle: preserve-3d or perspective set, |
| 407 // so check style too. | 407 // so check style too. |
| 408 bool hasTransform = layoutObject()->hasTransformRelatedProperty() && newStyl
e.hasTransform(); | 408 bool hasTransform = layoutObject()->hasTransformRelatedProperty() && newStyl
e.hasTransform(); |
| 409 bool had3DTransform = has3DTransform(); | 409 bool had3DTransform = has3DTransform(); |
| 410 | 410 |
| 411 bool hadTransform = transform(); | 411 bool hadTransform = transform(); |
| 412 if (hasTransform != hadTransform) { | 412 if (hasTransform != hadTransform) { |
| 413 if (hasTransform) | 413 if (hasTransform) |
| 414 ensureRareData().transform = adoptPtr(new TransformationMatrix); | 414 ensureRareData().transform = TransformationMatrix::create(); |
| 415 else | 415 else |
| 416 m_rareData->transform.clear(); | 416 m_rareData->transform.clear(); |
| 417 | 417 |
| 418 // PaintLayers with transforms act as clip rects roots, so clear the cac
hed clip rects here. | 418 // PaintLayers with transforms act as clip rects roots, so clear the cac
hed clip rects here. |
| 419 clipper().clearClipRectsIncludingDescendants(); | 419 clipper().clearClipRectsIncludingDescendants(); |
| 420 } else if (hasTransform) { | 420 } else if (hasTransform) { |
| 421 clipper().clearClipRectsIncludingDescendants(AbsoluteClipRects); | 421 clipper().clearClipRectsIncludingDescendants(AbsoluteClipRects); |
| 422 } | 422 } |
| 423 | 423 |
| 424 updateTransformationMatrix(); | 424 updateTransformationMatrix(); |
| (...skipping 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2801 | 2801 |
| 2802 void showLayerTree(const blink::LayoutObject* layoutObject) | 2802 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2803 { | 2803 { |
| 2804 if (!layoutObject) { | 2804 if (!layoutObject) { |
| 2805 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2805 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2806 return; | 2806 return; |
| 2807 } | 2807 } |
| 2808 showLayerTree(layoutObject->enclosingLayer()); | 2808 showLayerTree(layoutObject->enclosingLayer()); |
| 2809 } | 2809 } |
| 2810 #endif | 2810 #endif |
| OLD | NEW |