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