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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 virtual bool isCharacterDataNode() const { return false; } | 253 virtual bool isCharacterDataNode() const { return false; } |
254 virtual bool isFrameOwnerElement() const { return false; } | 254 virtual bool isFrameOwnerElement() const { return false; } |
255 virtual bool isPluginElement() const { return false; } | 255 virtual bool isPluginElement() const { return false; } |
256 virtual bool isInsertionPointNode() const { return false; } | 256 virtual bool isInsertionPointNode() const { return false; } |
257 | 257 |
258 bool isDocumentNode() const; | 258 bool isDocumentNode() const; |
259 bool isTreeScope() const { return treeScope()->rootNode() == this; } | 259 bool isTreeScope() const { return treeScope()->rootNode() == this; } |
260 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } | 260 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } |
261 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } | 261 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } |
262 bool isInsertionPoint() const { return getFlag(NeedsShadowTreeWalkerFlag) &&
isInsertionPointNode(); } | 262 bool isInsertionPoint() const { return getFlag(NeedsShadowTreeWalkerFlag) &&
isInsertionPointNode(); } |
263 // Returns Node rather than InsertionPoint. Should be used only for language
bindings. | |
264 Node* insertionParentForBinding() const; | |
265 | 263 |
266 bool needsShadowTreeWalker() const; | 264 bool needsShadowTreeWalker() const; |
267 bool needsShadowTreeWalkerSlow() const; | 265 bool needsShadowTreeWalkerSlow() const; |
268 void setNeedsShadowTreeWalker() { setFlag(NeedsShadowTreeWalkerFlag); } | 266 void setNeedsShadowTreeWalker() { setFlag(NeedsShadowTreeWalkerFlag); } |
269 void resetNeedsShadowTreeWalker() { setFlag(needsShadowTreeWalkerSlow(), Nee
dsShadowTreeWalkerFlag); } | 267 void resetNeedsShadowTreeWalker() { setFlag(needsShadowTreeWalkerSlow(), Nee
dsShadowTreeWalkerFlag); } |
270 | 268 |
271 bool inNamedFlow() const { return getFlag(InNamedFlowFlag); } | 269 bool inNamedFlow() const { return getFlag(InNamedFlowFlag); } |
272 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback
sFlag); } | 270 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback
sFlag); } |
273 | 271 |
274 bool hasSyntheticAttrChildNodes() const { return getFlag(HasSyntheticAttrChi
ldNodesFlag); } | 272 bool hasSyntheticAttrChildNodes() const { return getFlag(HasSyntheticAttrChi
ldNodesFlag); } |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 | 885 |
888 } //namespace | 886 } //namespace |
889 | 887 |
890 #ifndef NDEBUG | 888 #ifndef NDEBUG |
891 // Outside the WebCore namespace for ease of invocation from gdb. | 889 // Outside the WebCore namespace for ease of invocation from gdb. |
892 void showTree(const WebCore::Node*); | 890 void showTree(const WebCore::Node*); |
893 void showNodePath(const WebCore::Node*); | 891 void showNodePath(const WebCore::Node*); |
894 #endif | 892 #endif |
895 | 893 |
896 #endif | 894 #endif |
OLD | NEW |