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 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 MutableForPainting(const LayoutObject& layoutObject) : m_layoutObject(co
nst_cast<LayoutObject&>(layoutObject)) { } | 1385 MutableForPainting(const LayoutObject& layoutObject) : m_layoutObject(co
nst_cast<LayoutObject&>(layoutObject)) { } |
1386 | 1386 |
1387 LayoutObject& m_layoutObject; | 1387 LayoutObject& m_layoutObject; |
1388 }; | 1388 }; |
1389 MutableForPainting getMutableForPainting() const { return MutableForPainting
(*this); } | 1389 MutableForPainting getMutableForPainting() const { return MutableForPainting
(*this); } |
1390 | 1390 |
1391 void setIsScrollAnchorObject() { m_bitfields.setIsScrollAnchorObject(true);
} | 1391 void setIsScrollAnchorObject() { m_bitfields.setIsScrollAnchorObject(true);
} |
1392 // Clears the IsScrollAnchorObject bit, unless any ScrollAnchor still refers
to us. | 1392 // Clears the IsScrollAnchorObject bit, unless any ScrollAnchor still refers
to us. |
1393 void maybeClearIsScrollAnchorObject(); | 1393 void maybeClearIsScrollAnchorObject(); |
1394 | 1394 |
| 1395 void clearChildNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setChildN
eedsOverflowRecalcAfterStyleChange(false); } |
| 1396 |
1395 protected: | 1397 protected: |
1396 enum LayoutObjectType { | 1398 enum LayoutObjectType { |
1397 LayoutObjectBr, | 1399 LayoutObjectBr, |
1398 LayoutObjectCanvas, | 1400 LayoutObjectCanvas, |
1399 LayoutObjectFieldset, | 1401 LayoutObjectFieldset, |
1400 LayoutObjectCounter, | 1402 LayoutObjectCounter, |
1401 LayoutObjectDetailsMarker, | 1403 LayoutObjectDetailsMarker, |
1402 LayoutObjectEmbeddedObject, | 1404 LayoutObjectEmbeddedObject, |
1403 LayoutObjectFileUploadControl, | 1405 LayoutObjectFileUploadControl, |
1404 LayoutObjectFrame, | 1406 LayoutObjectFrame, |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 // The caller should ensure the enclosing layer has been setNeedsRepaint bef
ore calling this function. | 1559 // The caller should ensure the enclosing layer has been setNeedsRepaint bef
ore calling this function. |
1558 virtual void invalidateDisplayItemClients(const LayoutBoxModelObject& paintI
nvalidationContainer, PaintInvalidationReason) const; | 1560 virtual void invalidateDisplayItemClients(const LayoutBoxModelObject& paintI
nvalidationContainer, PaintInvalidationReason) const; |
1559 | 1561 |
1560 // Sets enclosing layer needsRepaint, then calls invalidateDisplayItemClient
s(). | 1562 // Sets enclosing layer needsRepaint, then calls invalidateDisplayItemClient
s(). |
1561 // Should use this version when PaintInvalidationState is available. | 1563 // Should use this version when PaintInvalidationState is available. |
1562 void invalidateDisplayItemClientsWithPaintInvalidationState(const LayoutBoxM
odelObject& paintInvalidationContainer, const PaintInvalidationState&, PaintInva
lidationReason) const; | 1564 void invalidateDisplayItemClientsWithPaintInvalidationState(const LayoutBoxM
odelObject& paintInvalidationContainer, const PaintInvalidationState&, PaintInva
lidationReason) const; |
1563 | 1565 |
1564 void setIsBackgroundAttachmentFixedObject(bool); | 1566 void setIsBackgroundAttachmentFixedObject(bool); |
1565 | 1567 |
1566 void clearSelfNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setSelfNee
dsOverflowRecalcAfterStyleChange(false); } | 1568 void clearSelfNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setSelfNee
dsOverflowRecalcAfterStyleChange(false); } |
1567 void clearChildNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setChildN
eedsOverflowRecalcAfterStyleChange(false); } | |
1568 void setShouldInvalidateOverflowForPaint() { m_bitfields.setShouldInvalidate
OverflowForPaint(true); } | 1569 void setShouldInvalidateOverflowForPaint() { m_bitfields.setShouldInvalidate
OverflowForPaint(true); } |
1569 void setEverHadLayout() { m_bitfields.setEverHadLayout(true); } | 1570 void setEverHadLayout() { m_bitfields.setEverHadLayout(true); } |
1570 | 1571 |
1571 // Remove this object and all descendants from the containing LayoutFlowThre
ad. | 1572 // Remove this object and all descendants from the containing LayoutFlowThre
ad. |
1572 void removeFromLayoutFlowThread(); | 1573 void removeFromLayoutFlowThread(); |
1573 | 1574 |
1574 bool containsInlineWithOutlineAndContinuation() const { return m_bitfields.c
ontainsInlineWithOutlineAndContinuation(); } | 1575 bool containsInlineWithOutlineAndContinuation() const { return m_bitfields.c
ontainsInlineWithOutlineAndContinuation(); } |
1575 void setContainsInlineWithOutlineAndContinuation(bool b) { m_bitfields.setCo
ntainsInlineWithOutlineAndContinuation(b); } | 1576 void setContainsInlineWithOutlineAndContinuation(bool b) { m_bitfields.setCo
ntainsInlineWithOutlineAndContinuation(b); } |
1576 | 1577 |
1577 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP
aintInvalidationRect; } | 1578 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP
aintInvalidationRect; } |
(...skipping 21 matching lines...) Expand all Loading... |
1599 | 1600 |
1600 void updateShapeImage(const ShapeValue*, const ShapeValue*); | 1601 void updateShapeImage(const ShapeValue*, const ShapeValue*); |
1601 void updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers
); | 1602 void updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers
); |
1602 | 1603 |
1603 void setNeedsOverflowRecalcAfterStyleChange(); | 1604 void setNeedsOverflowRecalcAfterStyleChange(); |
1604 | 1605 |
1605 void markContainerChainForLayout(bool scheduleRelayout, SubtreeLayoutScope*)
; | 1606 void markContainerChainForLayout(bool scheduleRelayout, SubtreeLayoutScope*)
; |
1606 | 1607 |
1607 // FIXME: This should be 'markContaingBoxChainForOverflowRecalc when we make
LayoutBox | 1608 // FIXME: This should be 'markContaingBoxChainForOverflowRecalc when we make
LayoutBox |
1608 // recomputeOverflow-capable. crbug.com/437012 and crbug.com/434700. | 1609 // recomputeOverflow-capable. crbug.com/437012 and crbug.com/434700. |
1609 inline void markContainingBlocksForOverflowRecalc(); | 1610 inline void markAncestorsForOverflowRecalcIfNeeded(); |
1610 | 1611 |
1611 inline void markContainerChainForPaintInvalidation(); | 1612 inline void markContainerChainForPaintInvalidation(); |
1612 | 1613 |
1613 inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject& paintInv
alidationContainer, const PaintInvalidationState&, PaintInvalidationReason); | 1614 inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject& paintInv
alidationContainer, const PaintInvalidationState&, PaintInvalidationReason); |
1614 | 1615 |
1615 inline void invalidateContainerPreferredLogicalWidths(); | 1616 inline void invalidateContainerPreferredLogicalWidths(); |
1616 | 1617 |
1617 void invalidatePaintIncludingNonSelfPaintingLayerDescendantsInternal(const L
ayoutBoxModelObject& paintInvalidationContainer); | 1618 void invalidatePaintIncludingNonSelfPaintingLayerDescendantsInternal(const L
ayoutBoxModelObject& paintInvalidationContainer); |
1618 | 1619 |
1619 // The caller should ensure the enclosing layer has been setNeedsRepaint bef
ore calling this function. | 1620 // The caller should ensure the enclosing layer has been setNeedsRepaint bef
ore calling this function. |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2168 void showTree(const blink::LayoutObject*); | 2169 void showTree(const blink::LayoutObject*); |
2169 void showLineTree(const blink::LayoutObject*); | 2170 void showLineTree(const blink::LayoutObject*); |
2170 void showLayoutTree(const blink::LayoutObject* object1); | 2171 void showLayoutTree(const blink::LayoutObject* object1); |
2171 // We don't make object2 an optional parameter so that showLayoutTree | 2172 // We don't make object2 an optional parameter so that showLayoutTree |
2172 // can be called from gdb easily. | 2173 // can be called from gdb easily. |
2173 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2174 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
2174 | 2175 |
2175 #endif | 2176 #endif |
2176 | 2177 |
2177 #endif // LayoutObject_h | 2178 #endif // LayoutObject_h |
OLD | NEW |