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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 // Make sure our parent is marked as needing invalidation. | 1013 // Make sure our parent is marked as needing invalidation. |
1014 if (b && parent() && !parent()->mayNeedPaintInvalidation()) | 1014 if (b && parent() && !parent()->mayNeedPaintInvalidation()) |
1015 parent()->setMayNeedPaintInvalidation(b); | 1015 parent()->setMayNeedPaintInvalidation(b); |
1016 } | 1016 } |
1017 | 1017 |
1018 bool shouldCheckForPaintInvalidationAfterLayout() | 1018 bool shouldCheckForPaintInvalidationAfterLayout() |
1019 { | 1019 { |
1020 return layoutDidGetCalled() || mayNeedPaintInvalidation(); | 1020 return layoutDidGetCalled() || mayNeedPaintInvalidation(); |
1021 } | 1021 } |
1022 | 1022 |
1023 bool shouldDisableLayoutState() const { return hasColumns() || hasTransform(
) || hasReflection() || style()->isFlippedBlocksWritingMode(); } | 1023 bool supportsLayoutStateCachedOffsets() const { return !hasColumns() && !has
Transform() && !hasReflection() && !style()->isFlippedBlocksWritingMode(); } |
1024 | 1024 |
1025 void setNeedsOverflowRecalcAfterStyleChange(); | 1025 void setNeedsOverflowRecalcAfterStyleChange(); |
1026 void markContainingBlocksForOverflowRecalc(); | 1026 void markContainingBlocksForOverflowRecalc(); |
1027 | 1027 |
1028 protected: | 1028 protected: |
1029 inline bool layerCreationAllowedForSubtree() const; | 1029 inline bool layerCreationAllowedForSubtree() const; |
1030 | 1030 |
1031 // Overrides should call the superclass at the end. m_style will be 0 the fi
rst time | 1031 // Overrides should call the superclass at the end. m_style will be 0 the fi
rst time |
1032 // this function will be called. | 1032 // this function will be called. |
1033 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); | 1033 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 void showTree(const WebCore::RenderObject*); | 1478 void showTree(const WebCore::RenderObject*); |
1479 void showLineTree(const WebCore::RenderObject*); | 1479 void showLineTree(const WebCore::RenderObject*); |
1480 void showRenderTree(const WebCore::RenderObject* object1); | 1480 void showRenderTree(const WebCore::RenderObject* object1); |
1481 // We don't make object2 an optional parameter so that showRenderTree | 1481 // We don't make object2 an optional parameter so that showRenderTree |
1482 // can be called from gdb easily. | 1482 // can be called from gdb easily. |
1483 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1483 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1484 | 1484 |
1485 #endif | 1485 #endif |
1486 | 1486 |
1487 #endif // RenderObject_h | 1487 #endif // RenderObject_h |
OLD | NEW |