| 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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 | 853 |
| 854 // Returns the paint invalidation rect for this LayoutObject in the coordina
te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation
Container|. | 854 // Returns the paint invalidation rect for this LayoutObject in the coordina
te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation
Container|. |
| 855 LayoutRect computePaintInvalidationRect(const LayoutBoxModelObject* paintInv
alidationContainer, const PaintInvalidationState* = 0) const; | 855 LayoutRect computePaintInvalidationRect(const LayoutBoxModelObject* paintInv
alidationContainer, const PaintInvalidationState* = 0) const; |
| 856 | 856 |
| 857 // Returns the rect bounds needed to invalidate the paint of this object, in
the coordinate space of the layoutObject backing of |paintInvalidationContainer
| | 857 // Returns the rect bounds needed to invalidate the paint of this object, in
the coordinate space of the layoutObject backing of |paintInvalidationContainer
| |
| 858 LayoutRect boundsRectForPaintInvalidation(const LayoutBoxModelObject* paintI
nvalidationContainer, const PaintInvalidationState* = 0) const; | 858 LayoutRect boundsRectForPaintInvalidation(const LayoutBoxModelObject* paintI
nvalidationContainer, const PaintInvalidationState* = 0) const; |
| 859 | 859 |
| 860 // Actually do the paint invalidate of rect r for this object which has been
computed in the coordinate space | 860 // Actually do the paint invalidate of rect r for this object which has been
computed in the coordinate space |
| 861 // of the GraphicsLayer backing of |paintInvalidationContainer|. Note that t
his coordinaten space is not the same | 861 // of the GraphicsLayer backing of |paintInvalidationContainer|. Note that t
his coordinaten space is not the same |
| 862 // as the local coordinate space of |paintInvalidationContainer| in the pres
ence of layer squashing. | 862 // as the local coordinate space of |paintInvalidationContainer| in the pres
ence of layer squashing. |
| 863 // If |paintInvalidationContainer| is 0, invalidate paints via the view. | 863 void invalidatePaintUsingContainer(const LayoutBoxModelObject& paintInvalida
tionContainer, const LayoutRect&, PaintInvalidationReason) const; |
| 864 // FIXME: |paintInvalidationContainer| should never be 0. See crbug.com/3636
99. | |
| 865 void invalidatePaintUsingContainer(const LayoutBoxModelObject* paintInvalida
tionContainer, const LayoutRect&, PaintInvalidationReason) const; | |
| 866 | 864 |
| 867 // Invalidate the paint of a specific subrectangle within a given object. Th
e rect |r| is in the object's coordinate space. | 865 // Invalidate the paint of a specific subrectangle within a given object. Th
e rect |r| is in the object's coordinate space. |
| 868 void invalidatePaintRectangle(const LayoutRect&) const; | 866 void invalidatePaintRectangle(const LayoutRect&) const; |
| 869 void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutR
ect& r) const { invalidatePaintRectangleInternal(r); } | 867 void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutR
ect& r) const { invalidatePaintRectangleInternal(r); } |
| 870 | 868 |
| 871 // Walk the tree after layout issuing paint invalidations for layoutObjects
that have changed or moved, updating bounds that have changed, and clearing pain
t invalidation state. | 869 // Walk the tree after layout issuing paint invalidations for layoutObjects
that have changed or moved, updating bounds that have changed, and clearing pain
t invalidation state. |
| 872 virtual void invalidateTreeIfNeeded(PaintInvalidationState&); | 870 virtual void invalidateTreeIfNeeded(PaintInvalidationState&); |
| 873 | 871 |
| 874 virtual void invalidatePaintForOverflow(); | 872 virtual void invalidatePaintForOverflow(); |
| 875 void invalidatePaintForOverflowIfNeeded(); | 873 void invalidatePaintForOverflowIfNeeded(); |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1222 | 1220 |
| 1223 inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject&, PaintIn
validationReason); | 1221 inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject&, PaintIn
validationReason); |
| 1224 | 1222 |
| 1225 inline void invalidateContainerPreferredLogicalWidths(); | 1223 inline void invalidateContainerPreferredLogicalWidths(); |
| 1226 | 1224 |
| 1227 void clearMayNeedPaintInvalidation(); | 1225 void clearMayNeedPaintInvalidation(); |
| 1228 | 1226 |
| 1229 void setLayoutDidGetCalledSinceLastFrame(); | 1227 void setLayoutDidGetCalledSinceLastFrame(); |
| 1230 void clearLayoutDidGetCalledSinceLastFrame() { m_bitfields.setLayoutDidGetCa
lledSinceLastFrame(false); } | 1228 void clearLayoutDidGetCalledSinceLastFrame() { m_bitfields.setLayoutDidGetCa
lledSinceLastFrame(false); } |
| 1231 | 1229 |
| 1232 void invalidatePaintIncludingNonCompositingDescendantsInternal(const LayoutB
oxModelObject* repaintContainer); | 1230 void invalidatePaintIncludingNonCompositingDescendantsInternal(const LayoutB
oxModelObject& repaintContainer); |
| 1233 | 1231 |
| 1234 LayoutRect previousSelectionRectForPaintInvalidation() const; | 1232 LayoutRect previousSelectionRectForPaintInvalidation() const; |
| 1235 void setPreviousSelectionRectForPaintInvalidation(const LayoutRect&); | 1233 void setPreviousSelectionRectForPaintInvalidation(const LayoutRect&); |
| 1236 | 1234 |
| 1237 const LayoutBoxModelObject* enclosingCompositedContainer() const; | 1235 const LayoutBoxModelObject* enclosingCompositedContainer() const; |
| 1238 | 1236 |
| 1239 LayoutFlowThread* locateFlowThreadContainingBlock() const; | 1237 LayoutFlowThread* locateFlowThreadContainingBlock() const; |
| 1240 void removeFromLayoutFlowThread(); | 1238 void removeFromLayoutFlowThread(); |
| 1241 void removeFromLayoutFlowThreadRecursive(LayoutFlowThread*); | 1239 void removeFromLayoutFlowThreadRecursive(LayoutFlowThread*); |
| 1242 | 1240 |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 void showTree(const blink::LayoutObject*); | 1663 void showTree(const blink::LayoutObject*); |
| 1666 void showLineTree(const blink::LayoutObject*); | 1664 void showLineTree(const blink::LayoutObject*); |
| 1667 void showLayoutTree(const blink::LayoutObject* object1); | 1665 void showLayoutTree(const blink::LayoutObject* object1); |
| 1668 // We don't make object2 an optional parameter so that showLayoutTree | 1666 // We don't make object2 an optional parameter so that showLayoutTree |
| 1669 // can be called from gdb easily. | 1667 // can be called from gdb easily. |
| 1670 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1668 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 1671 | 1669 |
| 1672 #endif | 1670 #endif |
| 1673 | 1671 |
| 1674 #endif // LayoutObject_h | 1672 #endif // LayoutObject_h |
| OLD | NEW |