OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 | 830 |
831 AttachContext context; | 831 AttachContext context; |
832 context.performingReattach = true; | 832 context.performingReattach = true; |
833 | 833 |
834 detachLayoutTree(context); | 834 detachLayoutTree(context); |
835 markAncestorsWithChildNeedsStyleRecalc(); | 835 markAncestorsWithChildNeedsStyleRecalc(); |
836 } | 836 } |
837 | 837 |
838 inline bool Node::shouldCallRecalcStyle(StyleRecalcChange change) | 838 inline bool Node::shouldCallRecalcStyle(StyleRecalcChange change) |
839 { | 839 { |
840 return change >= Inherit || needsStyleRecalc() || childNeedsStyleRecalc(); | 840 return change >= IndependentInherit || needsStyleRecalc() || childNeedsStyle
Recalc(); |
841 } | 841 } |
842 | 842 |
843 inline bool isTreeScopeRoot(const Node* node) | 843 inline bool isTreeScopeRoot(const Node* node) |
844 { | 844 { |
845 return !node || node->isDocumentNode() || node->isShadowRoot(); | 845 return !node || node->isDocumentNode() || node->isShadowRoot(); |
846 } | 846 } |
847 | 847 |
848 inline bool isTreeScopeRoot(const Node& node) | 848 inline bool isTreeScopeRoot(const Node& node) |
849 { | 849 { |
850 return node.isDocumentNode() || node.isShadowRoot(); | 850 return node.isDocumentNode() || node.isShadowRoot(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 } // namespace blink | 882 } // namespace blink |
883 | 883 |
884 #ifndef NDEBUG | 884 #ifndef NDEBUG |
885 // Outside the WebCore namespace for ease of invocation from gdb. | 885 // Outside the WebCore namespace for ease of invocation from gdb. |
886 void showNode(const blink::Node*); | 886 void showNode(const blink::Node*); |
887 void showTree(const blink::Node*); | 887 void showTree(const blink::Node*); |
888 void showNodePath(const blink::Node*); | 888 void showNodePath(const blink::Node*); |
889 #endif | 889 #endif |
890 | 890 |
891 #endif // Node_h | 891 #endif // Node_h |
OLD | NEW |