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 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL
ayer* currentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerR
ect) const; | 1154 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL
ayer* currentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerR
ect) const; |
1155 | 1155 |
1156 // Add hit-test rects for this layoutObject only to the provided list. layer
Offset is the offset | 1156 // Add hit-test rects for this layoutObject only to the provided list. layer
Offset is the offset |
1157 // of this layoutObject within the current layer that should be used for eac
h result. | 1157 // of this layoutObject within the current layer that should be used for eac
h result. |
1158 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const { } | 1158 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const { } |
1159 | 1159 |
1160 virtual PaintInvalidationReason paintInvalidationReason(const LayoutBoxModel
Object& paintInvalidationContainer, | 1160 virtual PaintInvalidationReason paintInvalidationReason(const LayoutBoxModel
Object& paintInvalidationContainer, |
1161 const LayoutRect& oldPaintInvalidationRect, const LayoutPoint& oldPositi
onFromPaintInvalidationBacking, | 1161 const LayoutRect& oldPaintInvalidationRect, const LayoutPoint& oldPositi
onFromPaintInvalidationBacking, |
1162 const LayoutRect& newPaintInvalidationRect, const LayoutPoint& newPositi
onFromPaintInvalidationBacking) const; | 1162 const LayoutRect& newPaintInvalidationRect, const LayoutPoint& newPositi
onFromPaintInvalidationBacking) const; |
1163 virtual void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintI
nvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds,
const LayoutPoint& positionFromPaintInvalidationBacking); | 1163 virtual void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintI
nvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds,
const LayoutPoint& positionFromPaintInvalidationBacking); |
1164 void fullyInvalidatePaint(const LayoutBoxModelObject& paintInvalidationConta
iner, PaintInvalidationReason, const LayoutRect& oldBounds, const LayoutRect& ne
wBounds); | |
1165 | 1164 |
1166 virtual bool hasNonCompositedScrollbars() const { return false; } | 1165 virtual bool hasNonCompositedScrollbars() const { return false; } |
1167 | 1166 |
1168 #if ENABLE(ASSERT) | 1167 #if ENABLE(ASSERT) |
1169 virtual bool paintInvalidationStateIsDirty() const | 1168 virtual bool paintInvalidationStateIsDirty() const |
1170 { | 1169 { |
1171 return m_bitfields.neededLayoutBecauseOfChildren() || shouldCheckForPain
tInvalidationRegardlessOfPaintInvalidationState(); | 1170 return m_bitfields.neededLayoutBecauseOfChildren() || shouldCheckForPain
tInvalidationRegardlessOfPaintInvalidationState(); |
1172 } | 1171 } |
1173 #endif | 1172 #endif |
1174 | 1173 |
1175 virtual void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& child
PaintInvalidationState); | 1174 virtual void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& child
PaintInvalidationState); |
1176 virtual PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationSta
te&, const LayoutBoxModelObject& paintInvalidationContainer); | 1175 virtual PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationSta
te&, const LayoutBoxModelObject& paintInvalidationContainer); |
1177 | 1176 |
1178 // When this object is invalidated for paint, this method is called to inval
idate any DisplayItemClients | 1177 // When this object is invalidated for paint, this method is called to inval
idate any DisplayItemClients |
1179 // owned by this object, including the object itself, LayoutText/LayoutInlin
e line boxes, etc., | 1178 // owned by this object, including the object itself, LayoutText/LayoutInlin
e line boxes, etc., |
1180 // not including children which will be invalidated normally during invalida
teTreeIfNeeded() and | 1179 // not including children which will be invalidated normally during invalida
teTreeIfNeeded() and |
1181 // parts which are invalidated separately (e.g. scrollbars). | 1180 // parts which are invalidated separately (e.g. scrollbars). |
1182 virtual void invalidateDisplayItemClients(const LayoutBoxModelObject& paintI
nvalidationContainer) const; | 1181 virtual void invalidateDisplayItemClients(const LayoutBoxModelObject& paintI
nvalidationContainer) const; |
1183 | 1182 |
1184 void setIsSlowRepaintObject(bool); | 1183 void setIsSlowRepaintObject(bool); |
1185 | 1184 |
1186 private: | 1185 private: |
| 1186 void fullyInvalidatePaint(const LayoutBoxModelObject& paintInvalidationConta
iner, PaintInvalidationReason, const LayoutRect& oldBounds, const LayoutRect& ne
wBounds); |
| 1187 |
1187 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP
aintInvalidationRect; } | 1188 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP
aintInvalidationRect; } |
1188 | 1189 |
1189 // Adjusts a paint invalidation rect in the space of |m_previousPaintInvalid
ationRect| and |m_previousPositionFromPaintInvalidationBacking| | 1190 // Adjusts a paint invalidation rect in the space of |m_previousPaintInvalid
ationRect| and |m_previousPositionFromPaintInvalidationBacking| |
1190 // to be in the space of the |paintInvalidationContainer|, | 1191 // to be in the space of the |paintInvalidationContainer|, |
1191 // if needed. They can be different only if |paintInvalidationContainer| is
a composited scroller. | 1192 // if needed. They can be different only if |paintInvalidationContainer| is
a composited scroller. |
1192 void adjustInvalidationRectForCompositedScrolling(LayoutRect&, const LayoutB
oxModelObject& paintInvalidationContainer) const; | 1193 void adjustInvalidationRectForCompositedScrolling(LayoutRect&, const LayoutB
oxModelObject& paintInvalidationContainer) const; |
1193 | 1194 |
1194 void clearLayoutRootIfNeeded() const; | 1195 void clearLayoutRootIfNeeded() const; |
1195 | 1196 |
1196 bool isInert() const; | 1197 bool isInert() const; |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 void showTree(const blink::LayoutObject*); | 1657 void showTree(const blink::LayoutObject*); |
1657 void showLineTree(const blink::LayoutObject*); | 1658 void showLineTree(const blink::LayoutObject*); |
1658 void showLayoutTree(const blink::LayoutObject* object1); | 1659 void showLayoutTree(const blink::LayoutObject* object1); |
1659 // We don't make object2 an optional parameter so that showLayoutTree | 1660 // We don't make object2 an optional parameter so that showLayoutTree |
1660 // can be called from gdb easily. | 1661 // can be called from gdb easily. |
1661 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1662 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
1662 | 1663 |
1663 #endif | 1664 #endif |
1664 | 1665 |
1665 #endif // LayoutObject_h | 1666 #endif // LayoutObject_h |
OLD | NEW |