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

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

Issue 18258003: Pow __proto__, sock :unresolved, and clunk the created callback at once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } 244 bool isHTMLElement() const { return getFlag(IsHTMLFlag); }
245 bool isSVGElement() const { return getFlag(IsSVGFlag); } 245 bool isSVGElement() const { return getFlag(IsSVGFlag); }
246 246
247 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; } 247 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; }
248 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; } 248 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; }
249 bool isAfterPseudoElement() const { return pseudoId() == AFTER; } 249 bool isAfterPseudoElement() const { return pseudoId() == AFTER; }
250 PseudoId pseudoId() const { return (isElementNode() && hasCustomStyleCallbac ks()) ? customPseudoId() : NOPSEUDO; } 250 PseudoId pseudoId() const { return (isElementNode() && hasCustomStyleCallbac ks()) ? customPseudoId() : NOPSEUDO; }
251 251
252 bool isCustomElement() const { return getFlag(IsCustomElement); } 252 bool isCustomElement() const { return getFlag(IsCustomElement); }
253 void setIsCustomElement(); 253 void setIsCustomElement();
254 bool isUpgradedCustomElement() const { return getFlag(IsUpgradedCustomElemen t); }
255 void setIsUpgradedCustomElement();
254 256
255 virtual bool isMediaControlElement() const { return false; } 257 virtual bool isMediaControlElement() const { return false; }
256 virtual bool isMediaControls() const { return false; } 258 virtual bool isMediaControls() const { return false; }
257 virtual bool isWebVTTElement() const { return false; } 259 virtual bool isWebVTTElement() const { return false; }
258 bool isStyledElement() const { return getFlag(IsStyledElementFlag); } 260 bool isStyledElement() const { return getFlag(IsStyledElementFlag); }
259 virtual bool isAttributeNode() const { return false; } 261 virtual bool isAttributeNode() const { return false; }
260 virtual bool isCharacterDataNode() const { return false; } 262 virtual bool isCharacterDataNode() const { return false; }
261 virtual bool isFrameOwnerElement() const { return false; } 263 virtual bool isFrameOwnerElement() const { return false; }
262 virtual bool isPluginElement() const { return false; } 264 virtual bool isPluginElement() const { return false; }
263 265
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 729
728 InNamedFlowFlag = 1 << 19, 730 InNamedFlowFlag = 1 << 19,
729 HasSyntheticAttrChildNodesFlag = 1 << 20, 731 HasSyntheticAttrChildNodesFlag = 1 << 20,
730 HasCustomStyleCallbacksFlag = 1 << 21, 732 HasCustomStyleCallbacksFlag = 1 << 21,
731 HasScopedHTMLStyleChildFlag = 1 << 22, 733 HasScopedHTMLStyleChildFlag = 1 << 22,
732 HasEventTargetDataFlag = 1 << 23, 734 HasEventTargetDataFlag = 1 << 23,
733 V8CollectableDuringMinorGCFlag = 1 << 24, 735 V8CollectableDuringMinorGCFlag = 1 << 24,
734 IsInsertionPointFlag = 1 << 25, 736 IsInsertionPointFlag = 1 << 25,
735 IsInShadowTreeFlag = 1 << 26, 737 IsInShadowTreeFlag = 1 << 26,
736 IsCustomElement = 1 << 27, 738 IsCustomElement = 1 << 27,
739 IsUpgradedCustomElement = 1 << 28,
esprehn 2013/07/04 00:54:58 I already used bit 28 with something else a day or
737 740
738 DefaultNodeFlags = IsParsingChildrenFinishedFlag 741 DefaultNodeFlags = IsParsingChildrenFinishedFlag
739 }; 742 };
740 743
741 // 4 bits remaining 744 // 3 bits remaining
742 745
743 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } 746 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; }
744 void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~m ask) | (-(int32_t)f & mask); } 747 void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~m ask) | (-(int32_t)f & mask); }
745 void setFlag(NodeFlags mask) const { m_nodeFlags |= mask; } 748 void setFlag(NodeFlags mask) const { m_nodeFlags |= mask; }
746 void clearFlag(NodeFlags mask) const { m_nodeFlags &= ~mask; } 749 void clearFlag(NodeFlags mask) const { m_nodeFlags &= ~mask; }
747 750
748 protected: 751 protected:
749 enum ConstructionType { 752 enum ConstructionType {
750 CreateOther = DefaultNodeFlags, 753 CreateOther = DefaultNodeFlags,
751 CreateText = DefaultNodeFlags | IsTextFlag, 754 CreateText = DefaultNodeFlags | IsTextFlag,
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 934
932 } //namespace 935 } //namespace
933 936
934 #ifndef NDEBUG 937 #ifndef NDEBUG
935 // Outside the WebCore namespace for ease of invocation from gdb. 938 // Outside the WebCore namespace for ease of invocation from gdb.
936 void showTree(const WebCore::Node*); 939 void showTree(const WebCore::Node*);
937 void showNodePath(const WebCore::Node*); 940 void showNodePath(const WebCore::Node*);
938 #endif 941 #endif
939 942
940 #endif 943 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698