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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 virtual bool isWebVTTElement() const { return false; } | 241 virtual bool isWebVTTElement() const { return false; } |
242 #endif | 242 #endif |
243 bool isStyledElement() const { return getFlag(IsStyledElementFlag); } | 243 bool isStyledElement() const { return getFlag(IsStyledElementFlag); } |
244 virtual bool isAttributeNode() const { return false; } | 244 virtual bool isAttributeNode() const { return false; } |
245 virtual bool isCharacterDataNode() const { return false; } | 245 virtual bool isCharacterDataNode() const { return false; } |
246 virtual bool isFrameOwnerElement() const { return false; } | 246 virtual bool isFrameOwnerElement() const { return false; } |
247 virtual bool isPluginElement() const { return false; } | 247 virtual bool isPluginElement() const { return false; } |
248 virtual bool isInsertionPointNode() const { return false; } | 248 virtual bool isInsertionPointNode() const { return false; } |
249 | 249 |
250 bool isDocumentNode() const; | 250 bool isDocumentNode() const; |
251 bool isTreeScope() const; | 251 bool isTreeScope() const { return treeScope()->rootNode() == this; } |
252 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } | 252 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } |
253 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } | 253 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } |
254 bool isInsertionPoint() const { return getFlag(NeedsShadowTreeWalkerFlag) &&
isInsertionPointNode(); } | 254 bool isInsertionPoint() const { return getFlag(NeedsShadowTreeWalkerFlag) &&
isInsertionPointNode(); } |
255 | 255 |
256 bool needsShadowTreeWalker() const; | 256 bool needsShadowTreeWalker() const; |
257 bool needsShadowTreeWalkerSlow() const; | 257 bool needsShadowTreeWalkerSlow() const; |
258 void setNeedsShadowTreeWalker() { setFlag(NeedsShadowTreeWalkerFlag); } | 258 void setNeedsShadowTreeWalker() { setFlag(NeedsShadowTreeWalkerFlag); } |
259 void resetNeedsShadowTreeWalker() { setFlag(needsShadowTreeWalkerSlow(), Nee
dsShadowTreeWalkerFlag); } | 259 void resetNeedsShadowTreeWalker() { setFlag(needsShadowTreeWalkerSlow(), Nee
dsShadowTreeWalkerFlag); } |
260 | 260 |
261 bool inNamedFlow() const { return getFlag(InNamedFlowFlag); } | 261 bool inNamedFlow() const { return getFlag(InNamedFlowFlag); } |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 | 897 |
898 } //namespace | 898 } //namespace |
899 | 899 |
900 #ifndef NDEBUG | 900 #ifndef NDEBUG |
901 // Outside the WebCore namespace for ease of invocation from gdb. | 901 // Outside the WebCore namespace for ease of invocation from gdb. |
902 void showTree(const WebCore::Node*); | 902 void showTree(const WebCore::Node*); |
903 void showNodePath(const WebCore::Node*); | 903 void showNodePath(const WebCore::Node*); |
904 #endif | 904 #endif |
905 | 905 |
906 #endif | 906 #endif |
OLD | NEW |