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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 | 863 |
864 AttachContext context; | 864 AttachContext context; |
865 context.performingReattach = true; | 865 context.performingReattach = true; |
866 | 866 |
867 detach(context); | 867 detach(context); |
868 markAncestorsWithChildNeedsStyleRecalc(); | 868 markAncestorsWithChildNeedsStyleRecalc(); |
869 } | 869 } |
870 | 870 |
871 inline bool Node::shouldCallRecalcStyle(StyleRecalcChange change) | 871 inline bool Node::shouldCallRecalcStyle(StyleRecalcChange change) |
872 { | 872 { |
873 return change >= Inherit || needsStyleRecalc() || childNeedsStyleRecalc(); | 873 return change >= IndependentInherit || needsStyleRecalc() || childNeedsStyle
Recalc(); |
874 } | 874 } |
875 | 875 |
876 inline bool isTreeScopeRoot(const Node* node) | 876 inline bool isTreeScopeRoot(const Node* node) |
877 { | 877 { |
878 return !node || node->isDocumentNode() || node->isShadowRoot(); | 878 return !node || node->isDocumentNode() || node->isShadowRoot(); |
879 } | 879 } |
880 | 880 |
881 inline bool isTreeScopeRoot(const Node& node) | 881 inline bool isTreeScopeRoot(const Node& node) |
882 { | 882 { |
883 return node.isDocumentNode() || node.isShadowRoot(); | 883 return node.isDocumentNode() || node.isShadowRoot(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 } // namespace blink | 922 } // namespace blink |
923 | 923 |
924 #ifndef NDEBUG | 924 #ifndef NDEBUG |
925 // Outside the WebCore namespace for ease of invocation from gdb. | 925 // Outside the WebCore namespace for ease of invocation from gdb. |
926 void showNode(const blink::Node*); | 926 void showNode(const blink::Node*); |
927 void showTree(const blink::Node*); | 927 void showTree(const blink::Node*); |
928 void showNodePath(const blink::Node*); | 928 void showNodePath(const blink::Node*); |
929 #endif | 929 #endif |
930 | 930 |
931 #endif // Node_h | 931 #endif // Node_h |
OLD | NEW |