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

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: Try to be nicer to MSVC. 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } 247 bool isHTMLElement() const { return getFlag(IsHTMLFlag); }
248 bool isSVGElement() const { return getFlag(IsSVGFlag); } 248 bool isSVGElement() const { return getFlag(IsSVGFlag); }
249 249
250 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; } 250 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; }
251 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; } 251 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; }
252 bool isAfterPseudoElement() const { return pseudoId() == AFTER; } 252 bool isAfterPseudoElement() const { return pseudoId() == AFTER; }
253 PseudoId pseudoId() const { return (isElementNode() && hasCustomStyleCallbac ks()) ? customPseudoId() : NOPSEUDO; } 253 PseudoId pseudoId() const { return (isElementNode() && hasCustomStyleCallbac ks()) ? customPseudoId() : NOPSEUDO; }
254 254
255 bool isCustomElement() const { return getFlag(IsCustomElement); } 255 bool isCustomElement() const { return getFlag(IsCustomElement); }
256 void setIsCustomElement(); 256 void setIsCustomElement();
257 bool isUpgradedCustomElement() const { return getFlag(IsUpgradedCustomElemen t); }
258 void setIsUpgradedCustomElement();
257 259
258 virtual bool isMediaControlElement() const { return false; } 260 virtual bool isMediaControlElement() const { return false; }
259 virtual bool isMediaControls() const { return false; } 261 virtual bool isMediaControls() const { return false; }
260 virtual bool isWebVTTElement() const { return false; } 262 virtual bool isWebVTTElement() const { return false; }
261 bool isStyledElement() const { return getFlag(IsStyledElementFlag); } 263 bool isStyledElement() const { return getFlag(IsStyledElementFlag); }
262 virtual bool isAttributeNode() const { return false; } 264 virtual bool isAttributeNode() const { return false; }
263 virtual bool isCharacterDataNode() const { return false; } 265 virtual bool isCharacterDataNode() const { return false; }
264 virtual bool isFrameOwnerElement() const { return false; } 266 virtual bool isFrameOwnerElement() const { return false; }
265 virtual bool isPluginElement() const { return false; } 267 virtual bool isPluginElement() const { return false; }
266 268
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 HasCustomStyleCallbacksFlag = 1 << 21, 743 HasCustomStyleCallbacksFlag = 1 << 21,
742 HasScopedHTMLStyleChildFlag = 1 << 22, 744 HasScopedHTMLStyleChildFlag = 1 << 22,
743 HasEventTargetDataFlag = 1 << 23, 745 HasEventTargetDataFlag = 1 << 23,
744 V8CollectableDuringMinorGCFlag = 1 << 24, 746 V8CollectableDuringMinorGCFlag = 1 << 24,
745 IsInsertionPointFlag = 1 << 25, 747 IsInsertionPointFlag = 1 << 25,
746 IsInShadowTreeFlag = 1 << 26, 748 IsInShadowTreeFlag = 1 << 26,
747 IsCustomElement = 1 << 27, 749 IsCustomElement = 1 << 27,
748 750
749 NotifyRendererWithIdenticalStyles = 1 << 28, 751 NotifyRendererWithIdenticalStyles = 1 << 28,
750 752
753 IsUpgradedCustomElement = 1 << 29,
754
751 DefaultNodeFlags = IsParsingChildrenFinishedFlag 755 DefaultNodeFlags = IsParsingChildrenFinishedFlag
752 }; 756 };
753 757
754 // 3 bits remaining 758 // 2 bits remaining
755 759
756 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } 760 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; }
757 void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~m ask) | (-(int32_t)f & mask); } 761 void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~m ask) | (-(int32_t)f & mask); }
758 void setFlag(NodeFlags mask) const { m_nodeFlags |= mask; } 762 void setFlag(NodeFlags mask) const { m_nodeFlags |= mask; }
759 void clearFlag(NodeFlags mask) const { m_nodeFlags &= ~mask; } 763 void clearFlag(NodeFlags mask) const { m_nodeFlags &= ~mask; }
760 764
761 protected: 765 protected:
762 enum ConstructionType { 766 enum ConstructionType {
763 CreateOther = DefaultNodeFlags, 767 CreateOther = DefaultNodeFlags,
764 CreateText = DefaultNodeFlags | IsTextFlag, 768 CreateText = DefaultNodeFlags | IsTextFlag,
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 948
945 } //namespace 949 } //namespace
946 950
947 #ifndef NDEBUG 951 #ifndef NDEBUG
948 // Outside the WebCore namespace for ease of invocation from gdb. 952 // Outside the WebCore namespace for ease of invocation from gdb.
949 void showTree(const WebCore::Node*); 953 void showTree(const WebCore::Node*);
950 void showNodePath(const WebCore::Node*); 954 void showNodePath(const WebCore::Node*);
951 #endif 955 #endif
952 956
953 #endif 957 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698