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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 if (!m_transform) | 403 if (!m_transform) |
404 return TransformationMatrix(); | 404 return TransformationMatrix(); |
405 return *m_transform; | 405 return *m_transform; |
406 } | 406 } |
407 | 407 |
408 TransformationMatrix DeprecatedPaintLayer::renderableTransform(PaintBehavior pai
ntBehavior) const | 408 TransformationMatrix DeprecatedPaintLayer::renderableTransform(PaintBehavior pai
ntBehavior) const |
409 { | 409 { |
410 if (!m_transform) | 410 if (!m_transform) |
411 return TransformationMatrix(); | 411 return TransformationMatrix(); |
412 | 412 |
413 if (paintBehavior & PaintBehaviorFlattenCompositingLayers) { | 413 if (gGlobalPaintFlags & GlobalPaintFlattenCompositingLayers) { |
414 TransformationMatrix matrix = *m_transform; | 414 TransformationMatrix matrix = *m_transform; |
415 makeMatrixRenderable(matrix, false /* flatten 3d */); | 415 makeMatrixRenderable(matrix, false /* flatten 3d */); |
416 return matrix; | 416 return matrix; |
417 } | 417 } |
418 | 418 |
419 return *m_transform; | 419 return *m_transform; |
420 } | 420 } |
421 | 421 |
422 // Convert a bounding box from flow thread coordinates, relative to |layer|, to
visual coordinates, relative to |ancestorLayer|. | 422 // Convert a bounding box from flow thread coordinates, relative to |layer|, to
visual coordinates, relative to |ancestorLayer|. |
423 // See http://www.chromium.org/developers/design-documents/multi-column-layout f
or more info on these coordinate types. | 423 // See http://www.chromium.org/developers/design-documents/multi-column-layout f
or more info on these coordinate types. |
(...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2371 return m_compositedDeprecatedPaintLayerMapping && m_compositedDeprecatedPain
tLayerMapping->hasMaskLayer(); | 2371 return m_compositedDeprecatedPaintLayerMapping && m_compositedDeprecatedPain
tLayerMapping->hasMaskLayer(); |
2372 } | 2372 } |
2373 | 2373 |
2374 bool DeprecatedPaintLayer::hasCompositedClippingMask() const | 2374 bool DeprecatedPaintLayer::hasCompositedClippingMask() const |
2375 { | 2375 { |
2376 return m_compositedDeprecatedPaintLayerMapping && m_compositedDeprecatedPain
tLayerMapping->hasChildClippingMaskLayer(); | 2376 return m_compositedDeprecatedPaintLayerMapping && m_compositedDeprecatedPain
tLayerMapping->hasChildClippingMaskLayer(); |
2377 } | 2377 } |
2378 | 2378 |
2379 bool DeprecatedPaintLayer::paintsWithTransform(PaintBehavior paintBehavior) cons
t | 2379 bool DeprecatedPaintLayer::paintsWithTransform(PaintBehavior paintBehavior) cons
t |
2380 { | 2380 { |
2381 return (transform() || layoutObject()->style()->position() == FixedPosition)
&& ((paintBehavior & PaintBehaviorFlattenCompositingLayers) || compositingState
() != PaintsIntoOwnBacking); | 2381 return (transform() || layoutObject()->style()->position() == FixedPosition)
&& ((gGlobalPaintFlags & GlobalPaintFlattenCompositingLayers) || compositingSta
te() != PaintsIntoOwnBacking); |
2382 } | 2382 } |
2383 | 2383 |
2384 bool DeprecatedPaintLayer::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& l
ocalRect) const | 2384 bool DeprecatedPaintLayer::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& l
ocalRect) const |
2385 { | 2385 { |
2386 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) | 2386 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) |
2387 return false; | 2387 return false; |
2388 | 2388 |
2389 if (paintsWithTransparency(PaintBehaviorNormal)) | 2389 if (paintsWithTransparency(PaintBehaviorNormal)) |
2390 return false; | 2390 return false; |
2391 | 2391 |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2741 | 2741 |
2742 void showLayerTree(const blink::LayoutObject* layoutObject) | 2742 void showLayerTree(const blink::LayoutObject* layoutObject) |
2743 { | 2743 { |
2744 if (!layoutObject) { | 2744 if (!layoutObject) { |
2745 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2745 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
2746 return; | 2746 return; |
2747 } | 2747 } |
2748 showLayerTree(layoutObject->enclosingLayer()); | 2748 showLayerTree(layoutObject->enclosingLayer()); |
2749 } | 2749 } |
2750 #endif | 2750 #endif |
OLD | NEW |