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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 positionOrOffsetChanged = newOffset != m_offsetForInFlowPosition; | 768 positionOrOffsetChanged = newOffset != m_offsetForInFlowPosition; |
769 m_offsetForInFlowPosition = newOffset; | 769 m_offsetForInFlowPosition = newOffset; |
770 localPoint.move(m_offsetForInFlowPosition); | 770 localPoint.move(m_offsetForInFlowPosition); |
771 } else { | 771 } else { |
772 m_offsetForInFlowPosition = LayoutSize(); | 772 m_offsetForInFlowPosition = LayoutSize(); |
773 } | 773 } |
774 | 774 |
775 // FIXME: We'd really like to just get rid of the concept of a layer rectang
le and rely on the layoutObjects. | 775 // FIXME: We'd really like to just get rid of the concept of a layer rectang
le and rely on the layoutObjects. |
776 localPoint.moveBy(-inlineBoundingBoxOffset); | 776 localPoint.moveBy(-inlineBoundingBoxOffset); |
777 | 777 |
778 if (m_location != localPoint) | 778 if (m_location != localPoint) { |
779 positionOrOffsetChanged = true; | 779 positionOrOffsetChanged = true; |
| 780 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
| 781 setNeedsRepaint(); |
| 782 } |
780 m_location = localPoint; | 783 m_location = localPoint; |
781 | 784 |
782 #if ENABLE(ASSERT) | 785 #if ENABLE(ASSERT) |
783 m_needsPositionUpdate = false; | 786 m_needsPositionUpdate = false; |
784 #endif | 787 #endif |
785 return positionOrOffsetChanged; | 788 return positionOrOffsetChanged; |
786 } | 789 } |
787 | 790 |
788 TransformationMatrix DeprecatedPaintLayer::perspectiveTransform() const | 791 TransformationMatrix DeprecatedPaintLayer::perspectiveTransform() const |
789 { | 792 { |
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2711 | 2714 |
2712 void showLayerTree(const blink::LayoutObject* layoutObject) | 2715 void showLayerTree(const blink::LayoutObject* layoutObject) |
2713 { | 2716 { |
2714 if (!layoutObject) { | 2717 if (!layoutObject) { |
2715 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2718 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
2716 return; | 2719 return; |
2717 } | 2720 } |
2718 showLayerTree(layoutObject->enclosingLayer()); | 2721 showLayerTree(layoutObject->enclosingLayer()); |
2719 } | 2722 } |
2720 #endif | 2723 #endif |
OLD | NEW |