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