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 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 // The previous paint invalidation rect, in the the space of the paint inval
idation container (*not* the graphics layer that paints | 1109 // The previous paint invalidation rect, in the the space of the paint inval
idation container (*not* the graphics layer that paints |
1110 // this object). | 1110 // this object). |
1111 LayoutRect previousPaintInvalidationRectIncludingCompositedScrolling(const L
ayoutBoxModelObject& paintInvalidationContainer) const; | 1111 LayoutRect previousPaintInvalidationRectIncludingCompositedScrolling(const L
ayoutBoxModelObject& paintInvalidationContainer) const; |
1112 LayoutSize previousPaintInvalidationRectSize() const { return previousPaintI
nvalidationRect().size(); } | 1112 LayoutSize previousPaintInvalidationRectSize() const { return previousPaintI
nvalidationRect().size(); } |
1113 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa
intInvalidationRect = rect; } | 1113 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa
intInvalidationRect = rect; } |
1114 | 1114 |
1115 // Only adjusts if the paint invalidation container is not a composited scro
ller. | 1115 // Only adjusts if the paint invalidation container is not a composited scro
ller. |
1116 void adjustPreviousPaintInvalidationForScrollIfNeeded(const DoubleSize& scro
llDelta); | 1116 void adjustPreviousPaintInvalidationForScrollIfNeeded(const DoubleSize& scro
llDelta); |
1117 | 1117 |
1118 // The previous position of the top-left corner of the object in its previou
s paint backing. | 1118 // The previous position of the top-left corner of the object in its previou
s paint backing. |
1119 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const { re
turn m_previousPositionFromPaintInvalidationBacking; } | 1119 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const |
1120 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint& posi
tionFromPaintInvalidationBacking) { m_previousPositionFromPaintInvalidationBacki
ng = positionFromPaintInvalidationBacking; } | 1120 { |
| 1121 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); |
| 1122 return m_previousPositionFromPaintInvalidationBacking; |
| 1123 } |
| 1124 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint& posi
tionFromPaintInvalidationBacking) |
| 1125 { |
| 1126 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); |
| 1127 m_previousPositionFromPaintInvalidationBacking = positionFromPaintInvali
dationBacking; |
| 1128 } |
1121 | 1129 |
1122 PaintInvalidationReason fullPaintInvalidationReason() const { return m_bitfi
elds.fullPaintInvalidationReason(); } | 1130 PaintInvalidationReason fullPaintInvalidationReason() const { return m_bitfi
elds.fullPaintInvalidationReason(); } |
1123 bool shouldDoFullPaintInvalidation() const { return m_bitfields.fullPaintInv
alidationReason() != PaintInvalidationNone; } | 1131 bool shouldDoFullPaintInvalidation() const { return m_bitfields.fullPaintInv
alidationReason() != PaintInvalidationNone; } |
1124 void setShouldDoFullPaintInvalidation(PaintInvalidationReason = PaintInvalid
ationFull); | 1132 void setShouldDoFullPaintInvalidation(PaintInvalidationReason = PaintInvalid
ationFull); |
1125 void clearShouldDoFullPaintInvalidation() { m_bitfields.setFullPaintInvalida
tionReason(PaintInvalidationNone); } | 1133 void clearShouldDoFullPaintInvalidation() { m_bitfields.setFullPaintInvalida
tionReason(PaintInvalidationNone); } |
1126 | 1134 |
1127 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv
alidateOverflowForPaint(); } | 1135 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv
alidateOverflowForPaint(); } |
1128 | 1136 |
1129 virtual void clearPaintInvalidationState(const PaintInvalidationState&); | 1137 virtual void clearPaintInvalidationState(const PaintInvalidationState&); |
1130 | 1138 |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1854 void showTree(const blink::LayoutObject*); | 1862 void showTree(const blink::LayoutObject*); |
1855 void showLineTree(const blink::LayoutObject*); | 1863 void showLineTree(const blink::LayoutObject*); |
1856 void showLayoutTree(const blink::LayoutObject* object1); | 1864 void showLayoutTree(const blink::LayoutObject* object1); |
1857 // We don't make object2 an optional parameter so that showLayoutTree | 1865 // We don't make object2 an optional parameter so that showLayoutTree |
1858 // can be called from gdb easily. | 1866 // can be called from gdb easily. |
1859 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1867 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
1860 | 1868 |
1861 #endif | 1869 #endif |
1862 | 1870 |
1863 #endif // LayoutObject_h | 1871 #endif // LayoutObject_h |
OLD | NEW |