Index: Source/core/dom/Node.h |
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h |
index 8f369dc2adc42b73799d357cc681239215c2f7e8..a073d8809ed633e60f2b4f008c9f6787583f486f 100644 |
--- a/Source/core/dom/Node.h |
+++ b/Source/core/dom/Node.h |
@@ -334,7 +334,7 @@ public: |
virtual void notifyLoadedSheetAndAllCriticalSubresources(bool /* error loading subresource */) { } |
virtual void startLoadingDynamicSheet() { ASSERT_NOT_REACHED(); } |
- bool hasName() const { return !isTextNode() && getFlag(HasNameOrIsEditingTextFlag); } |
+ bool hasName() const { ASSERT(!isTextNode()); return getFlag(HasNameOrIsEditingTextFlag); } |
bool isUserActionElement() const { return getFlag(IsUserActionElementFlag); } |
void setUserActionElement(bool flag) { setFlag(flag, IsUserActionElementFlag); } |
@@ -349,7 +349,7 @@ public: |
StyleChangeType styleChangeType() const { return static_cast<StyleChangeType>(m_nodeFlags & StyleChangeMask); } |
bool childNeedsStyleRecalc() const { return getFlag(ChildNeedsStyleRecalcFlag); } |
bool isLink() const { return getFlag(IsLinkFlag); } |
- bool isEditingText() const { return isTextNode() && getFlag(HasNameOrIsEditingTextFlag); } |
+ bool isEditingText() const { ASSERT(isTextNode()); return getFlag(HasNameOrIsEditingTextFlag); } |
void setHasName(bool f) { ASSERT(!isTextNode()); setFlag(f, HasNameOrIsEditingTextFlag); } |
void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } |