| 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. | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 7 * (http://www.torchmobile.com/) | 7 * (http://www.torchmobile.com/) |
| 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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 inline ContainerNode* Node::parentOrShadowHostNode() const { | 958 inline ContainerNode* Node::parentOrShadowHostNode() const { |
| 959 DCHECK(isMainThread()); | 959 DCHECK(isMainThread()); |
| 960 return m_parentOrShadowHostNode; | 960 return m_parentOrShadowHostNode; |
| 961 } | 961 } |
| 962 | 962 |
| 963 inline ContainerNode* Node::parentNode() const { | 963 inline ContainerNode* Node::parentNode() const { |
| 964 return isShadowRoot() ? nullptr : parentOrShadowHostNode(); | 964 return isShadowRoot() ? nullptr : parentOrShadowHostNode(); |
| 965 } | 965 } |
| 966 | 966 |
| 967 inline void Node::lazyReattachIfAttached() { | 967 inline void Node::lazyReattachIfAttached() { |
| 968 if (getStyleChangeType() == NeedsReattachStyleChange) | 968 if (needsAttach()) |
| 969 return; | 969 return; |
| 970 if (!inActiveDocument()) | 970 if (!inActiveDocument()) |
| 971 return; | 971 return; |
| 972 | 972 |
| 973 AttachContext context; | 973 AttachContext context; |
| 974 context.performingReattach = true; | 974 context.performingReattach = true; |
| 975 | 975 |
| 976 detachLayoutTree(context); | 976 detachLayoutTree(context); |
| 977 markAncestorsWithChildNeedsStyleRecalc(); | 977 markAncestorsWithChildNeedsStyleRecalc(); |
| 978 } | 978 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 } // namespace blink | 1017 } // namespace blink |
| 1018 | 1018 |
| 1019 #ifndef NDEBUG | 1019 #ifndef NDEBUG |
| 1020 // Outside the WebCore namespace for ease of invocation from gdb. | 1020 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1021 void showNode(const blink::Node*); | 1021 void showNode(const blink::Node*); |
| 1022 void showTree(const blink::Node*); | 1022 void showTree(const blink::Node*); |
| 1023 void showNodePath(const blink::Node*); | 1023 void showNodePath(const blink::Node*); |
| 1024 #endif | 1024 #endif |
| 1025 | 1025 |
| 1026 #endif // Node_h | 1026 #endif // Node_h |
| OLD | NEW |