OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 // The previous paint invalidation rect, in the the space of the paint inval
idation container (*not* the graphics layer that paints | 1050 // The previous paint invalidation rect, in the the space of the paint inval
idation container (*not* the graphics layer that paints |
1051 // this object). | 1051 // this object). |
1052 LayoutRect previousPaintInvalidationRectIncludingCompositedScrolling(const L
ayoutBoxModelObject& paintInvalidationContainer) const; | 1052 LayoutRect previousPaintInvalidationRectIncludingCompositedScrolling(const L
ayoutBoxModelObject& paintInvalidationContainer) const; |
1053 LayoutSize previousPaintInvalidationRectSize() const { return previousPaintI
nvalidationRect().size(); } | 1053 LayoutSize previousPaintInvalidationRectSize() const { return previousPaintI
nvalidationRect().size(); } |
1054 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa
intInvalidationRect = rect; } | 1054 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa
intInvalidationRect = rect; } |
1055 | 1055 |
1056 // Only adjusts if the paint invalidation container is not a composited scro
ller. | 1056 // Only adjusts if the paint invalidation container is not a composited scro
ller. |
1057 void adjustPreviousPaintInvalidationForScrollIfNeeded(const DoubleSize& scro
llDelta); | 1057 void adjustPreviousPaintInvalidationForScrollIfNeeded(const DoubleSize& scro
llDelta); |
1058 | 1058 |
1059 // The previous position of the top-left corner of the object in its previou
s paint backing. | 1059 // The previous position of the top-left corner of the object in its previou
s paint backing. |
1060 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const { re
turn m_previousPositionFromPaintInvalidationBacking; } | 1060 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const |
1061 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint& posi
tionFromPaintInvalidationBacking) { m_previousPositionFromPaintInvalidationBacki
ng = positionFromPaintInvalidationBacking; } | 1061 { |
| 1062 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); |
| 1063 return m_previousPositionFromPaintInvalidationBacking; |
| 1064 } |
| 1065 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint& posi
tionFromPaintInvalidationBacking) |
| 1066 { |
| 1067 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); |
| 1068 m_previousPositionFromPaintInvalidationBacking = positionFromPaintInvali
dationBacking; |
| 1069 } |
1062 | 1070 |
1063 PaintInvalidationReason fullPaintInvalidationReason() const { return m_bitfi
elds.fullPaintInvalidationReason(); } | 1071 PaintInvalidationReason fullPaintInvalidationReason() const { return m_bitfi
elds.fullPaintInvalidationReason(); } |
1064 bool shouldDoFullPaintInvalidation() const { return m_bitfields.fullPaintInv
alidationReason() != PaintInvalidationNone; } | 1072 bool shouldDoFullPaintInvalidation() const { return m_bitfields.fullPaintInv
alidationReason() != PaintInvalidationNone; } |
1065 void setShouldDoFullPaintInvalidation(PaintInvalidationReason = PaintInvalid
ationFull); | 1073 void setShouldDoFullPaintInvalidation(PaintInvalidationReason = PaintInvalid
ationFull); |
1066 void clearShouldDoFullPaintInvalidation() { m_bitfields.setFullPaintInvalida
tionReason(PaintInvalidationNone); } | 1074 void clearShouldDoFullPaintInvalidation() { m_bitfields.setFullPaintInvalida
tionReason(PaintInvalidationNone); } |
1067 | 1075 |
1068 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv
alidateOverflowForPaint(); } | 1076 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv
alidateOverflowForPaint(); } |
1069 | 1077 |
1070 virtual void clearPaintInvalidationState(const PaintInvalidationState&); | 1078 virtual void clearPaintInvalidationState(const PaintInvalidationState&); |
1071 | 1079 |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1795 void showTree(const blink::LayoutObject*); | 1803 void showTree(const blink::LayoutObject*); |
1796 void showLineTree(const blink::LayoutObject*); | 1804 void showLineTree(const blink::LayoutObject*); |
1797 void showLayoutTree(const blink::LayoutObject* object1); | 1805 void showLayoutTree(const blink::LayoutObject* object1); |
1798 // We don't make object2 an optional parameter so that showLayoutTree | 1806 // We don't make object2 an optional parameter so that showLayoutTree |
1799 // can be called from gdb easily. | 1807 // can be called from gdb easily. |
1800 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1808 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
1801 | 1809 |
1802 #endif | 1810 #endif |
1803 | 1811 |
1804 #endif // LayoutObject_h | 1812 #endif // LayoutObject_h |
OLD | NEW |