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 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 void invalidatePaintRectangle(const LayoutRect&) const; | 1026 void invalidatePaintRectangle(const LayoutRect&) const; |
1027 void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutR
ect&) const; | 1027 void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutR
ect&) const; |
1028 | 1028 |
1029 // 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. | 1029 // 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. |
1030 virtual void invalidateTreeIfNeeded(PaintInvalidationState&); | 1030 virtual void invalidateTreeIfNeeded(PaintInvalidationState&); |
1031 | 1031 |
1032 virtual void invalidatePaintForOverflow(); | 1032 virtual void invalidatePaintForOverflow(); |
1033 void invalidatePaintForOverflowIfNeeded(); | 1033 void invalidatePaintForOverflowIfNeeded(); |
1034 | 1034 |
1035 void invalidatePaintIncludingNonCompositingDescendants(); | 1035 void invalidatePaintIncludingNonCompositingDescendants(); |
| 1036 void invalidatePaintIncludingNonLayerDescendants(); |
1036 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); | 1037 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); |
1037 | 1038 |
1038 // Returns the rect that should have paint invalidated whenever this object
changes. The rect is in the view's | 1039 // Returns the rect that should have paint invalidated whenever this object
changes. The rect is in the view's |
1039 // coordinate space. This method deals with outlines and overflow. | 1040 // coordinate space. This method deals with outlines and overflow. |
1040 virtual LayoutRect absoluteClippedOverflowRect() const; | 1041 virtual LayoutRect absoluteClippedOverflowRect() const; |
1041 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo
delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr)
const; | 1042 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo
delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr)
const; |
1042 | 1043 |
1043 // Given a rect in the object's coordinate space, compute a rect suitable fo
r invalidating paints of | 1044 // Given a rect in the object's coordinate space, compute a rect suitable fo
r invalidating paints of |
1044 // that rect in the coordinate space of paintInvalidationContainer. | 1045 // that rect in the coordinate space of paintInvalidationContainer. |
1045 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p
aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const; | 1046 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p
aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const; |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 // FIXME: This should be 'markContaingBoxChainForOverflowRecalc when we make
LayoutBox | 1464 // FIXME: This should be 'markContaingBoxChainForOverflowRecalc when we make
LayoutBox |
1464 // recomputeOverflow-capable. crbug.com/437012 and crbug.com/434700. | 1465 // recomputeOverflow-capable. crbug.com/437012 and crbug.com/434700. |
1465 inline void markContainingBlocksForOverflowRecalc(); | 1466 inline void markContainingBlocksForOverflowRecalc(); |
1466 | 1467 |
1467 inline void markContainerChainForPaintInvalidation(); | 1468 inline void markContainerChainForPaintInvalidation(); |
1468 | 1469 |
1469 inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject&, PaintIn
validationReason); | 1470 inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject&, PaintIn
validationReason); |
1470 | 1471 |
1471 inline void invalidateContainerPreferredLogicalWidths(); | 1472 inline void invalidateContainerPreferredLogicalWidths(); |
1472 | 1473 |
1473 void invalidatePaintIncludingNonCompositingDescendantsInternal(const LayoutB
oxModelObject& repaintContainer); | 1474 void invalidatePaintOfPreviousPaintInvalidationRect(const LayoutBoxModelObje
ct& paintInvalidationContainer, PaintInvalidationReason) const; |
| 1475 void invalidatePaintIncludingNonLayerDescendantsInternal(const LayoutBoxMode
lObject& paintInvalidationContainer); |
1474 | 1476 |
1475 LayoutRect previousSelectionRectForPaintInvalidation() const; | 1477 LayoutRect previousSelectionRectForPaintInvalidation() const; |
1476 void setPreviousSelectionRectForPaintInvalidation(const LayoutRect&); | 1478 void setPreviousSelectionRectForPaintInvalidation(const LayoutRect&); |
1477 | 1479 |
1478 LayoutObject* containerForAbsolutePosition(const LayoutBoxModelObject* paint
InvalidationContainer = nullptr, bool* paintInvalidationContainerSkipped = nullp
tr) const; | 1480 LayoutObject* containerForAbsolutePosition(const LayoutBoxModelObject* paint
InvalidationContainer = nullptr, bool* paintInvalidationContainerSkipped = nullp
tr) const; |
1479 | 1481 |
1480 const LayoutBoxModelObject* enclosingCompositedContainer() const; | 1482 const LayoutBoxModelObject* enclosingCompositedContainer() const; |
1481 | 1483 |
1482 LayoutFlowThread* locateFlowThreadContainingBlock() const; | 1484 LayoutFlowThread* locateFlowThreadContainingBlock() const; |
1483 void removeFromLayoutFlowThreadRecursive(LayoutFlowThread*); | 1485 void removeFromLayoutFlowThreadRecursive(LayoutFlowThread*); |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2006 void showTree(const blink::LayoutObject*); | 2008 void showTree(const blink::LayoutObject*); |
2007 void showLineTree(const blink::LayoutObject*); | 2009 void showLineTree(const blink::LayoutObject*); |
2008 void showLayoutTree(const blink::LayoutObject* object1); | 2010 void showLayoutTree(const blink::LayoutObject* object1); |
2009 // We don't make object2 an optional parameter so that showLayoutTree | 2011 // We don't make object2 an optional parameter so that showLayoutTree |
2010 // can be called from gdb easily. | 2012 // can be called from gdb easily. |
2011 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2013 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
2012 | 2014 |
2013 #endif | 2015 #endif |
2014 | 2016 |
2015 #endif // LayoutObject_h | 2017 #endif // LayoutObject_h |
OLD | NEW |