Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: Source/WebCore/dom/Node.h

Issue 12518022: Merge 143840 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/dom/DocumentFragment.cpp ('k') | Source/WebCore/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/dom/DocumentFragment.cpp ('k') | Source/WebCore/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698