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 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1084 bool shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState() | 1084 bool shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState() |
1085 { | 1085 { |
1086 return layoutDidGetCalled() || mayNeedPaintInvalidation() || shouldDoFul lPaintInvalidation() || shouldDoFullPaintInvalidationIfSelfPaintingLayer(); | 1086 return layoutDidGetCalled() || mayNeedPaintInvalidation() || shouldDoFul lPaintInvalidation() || shouldDoFullPaintInvalidationIfSelfPaintingLayer(); |
1087 } | 1087 } |
1088 | 1088 |
1089 bool supportsPaintInvalidationStateCachedOffsets() const { return !hasColumn s() && !hasTransform() && !hasReflection() && !style()->isFlippedBlocksWritingMo de(); } | 1089 bool supportsPaintInvalidationStateCachedOffsets() const { return !hasColumn s() && !hasTransform() && !hasReflection() && !style()->isFlippedBlocksWritingMo de(); } |
1090 | 1090 |
1091 void setNeedsOverflowRecalcAfterStyleChange(); | 1091 void setNeedsOverflowRecalcAfterStyleChange(); |
1092 void markContainingBlocksForOverflowRecalc(); | 1092 void markContainingBlocksForOverflowRecalc(); |
1093 | 1093 |
1094 // Invalidate the paint of the entire object. | |
1095 // FIXME: This should be private and be only used when a renderer is to be r emoved, | |
1096 // but we still have some cases needing it to be used from outside. | |
1097 // For other cases, the caller should call setShouldDoFullPaintInvalidation( ) instead. | |
1098 void invalidatePaintForWholeRenderer() const; | |
Julien - ping for review
2014/08/22 18:53:09
I think we should not expose invalidatePaintForWho
Xianzhu
2014/08/22 19:11:21
Done.
| |
1099 | |
1094 protected: | 1100 protected: |
1095 inline bool layerCreationAllowedForSubtree() const; | 1101 inline bool layerCreationAllowedForSubtree() const; |
1096 | 1102 |
1097 // Overrides should call the superclass at the end. m_style will be 0 the fi rst time | 1103 // Overrides should call the superclass at the end. m_style will be 0 the fi rst time |
1098 // this function will be called. | 1104 // this function will be called. |
1099 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); | 1105 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); |
1100 // Overrides should call the superclass at the start. |oldStyle| will be 0 t he first | 1106 // Overrides should call the superclass at the start. |oldStyle| will be 0 t he first |
1101 // time this function is called. | 1107 // time this function is called. |
1102 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 1108 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
1103 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); | 1109 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1151 | 1157 |
1152 #if ENABLE(ASSERT) | 1158 #if ENABLE(ASSERT) |
1153 virtual bool paintInvalidationStateIsDirty() const | 1159 virtual bool paintInvalidationStateIsDirty() const |
1154 { | 1160 { |
1155 return layoutDidGetCalled() || shouldDoFullPaintInvalidation() || should DoFullPaintInvalidationIfSelfPaintingLayer() | 1161 return layoutDidGetCalled() || shouldDoFullPaintInvalidation() || should DoFullPaintInvalidationIfSelfPaintingLayer() |
1156 || onlyNeededPositionedMovementLayout() || neededLayoutBecauseOfChil dren() || mayNeedPaintInvalidation(); | 1162 || onlyNeededPositionedMovementLayout() || neededLayoutBecauseOfChil dren() || mayNeedPaintInvalidation(); |
1157 } | 1163 } |
1158 #endif | 1164 #endif |
1159 | 1165 |
1160 private: | 1166 private: |
1161 // Invalidate the paint of the entire object. This is only used when a rende rer is to be removed. | |
1162 // For other cases, the caller should call setShouldDoFullPaintInvalidation( ) instead. | |
1163 void invalidatePaintForWholeRenderer() const; | |
1164 | |
1165 const RenderLayerModelObject* enclosingCompositedContainer() const; | 1167 const RenderLayerModelObject* enclosingCompositedContainer() const; |
1166 | 1168 |
1167 RenderFlowThread* locateFlowThreadContainingBlock() const; | 1169 RenderFlowThread* locateFlowThreadContainingBlock() const; |
1168 void removeFromRenderFlowThread(); | 1170 void removeFromRenderFlowThread(); |
1169 void removeFromRenderFlowThreadRecursive(RenderFlowThread*); | 1171 void removeFromRenderFlowThreadRecursive(RenderFlowThread*); |
1170 | 1172 |
1171 bool hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor() const; | 1173 bool hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor() const; |
1172 | 1174 |
1173 RenderStyle* cachedFirstLineStyle() const; | 1175 RenderStyle* cachedFirstLineStyle() const; |
1174 StyleDifference adjustStyleDifference(StyleDifference) const; | 1176 StyleDifference adjustStyleDifference(StyleDifference) const; |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1571 void showTree(const blink::RenderObject*); | 1573 void showTree(const blink::RenderObject*); |
1572 void showLineTree(const blink::RenderObject*); | 1574 void showLineTree(const blink::RenderObject*); |
1573 void showRenderTree(const blink::RenderObject* object1); | 1575 void showRenderTree(const blink::RenderObject* object1); |
1574 // We don't make object2 an optional parameter so that showRenderTree | 1576 // We don't make object2 an optional parameter so that showRenderTree |
1575 // can be called from gdb easily. | 1577 // can be called from gdb easily. |
1576 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); | 1578 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); |
1577 | 1579 |
1578 #endif | 1580 #endif |
1579 | 1581 |
1580 #endif // RenderObject_h | 1582 #endif // RenderObject_h |
OLD | NEW |