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

Unified Diff: Source/core/html/parser/HTMLElementStack.cpp

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mike's comments Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLFormattingElementList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLElementStack.cpp
diff --git a/Source/core/html/parser/HTMLElementStack.cpp b/Source/core/html/parser/HTMLElementStack.cpp
index 23ec60baa02b639fed6cbb14e92528a88108ea6d..b90671170b1a5143b95333ec70e160c6ff18d672 100644
--- a/Source/core/html/parser/HTMLElementStack.cpp
+++ b/Source/core/html/parser/HTMLElementStack.cpp
@@ -395,7 +395,7 @@ HTMLStackItem* HTMLElementStack::oneBelowTop() const
ASSERT(m_top->next());
if (m_top->next()->stackItem()->isElementNode())
return m_top->next()->stackItem().get();
- return 0;
+ return nullptr;
}
void HTMLElementStack::removeHTMLHeadElement(Element* element)
@@ -425,7 +425,7 @@ HTMLElementStack::ElementRecord* HTMLElementStack::find(Element* element) const
if (pos->node() == element)
return pos;
}
- return 0;
+ return nullptr;
}
HTMLElementStack::ElementRecord* HTMLElementStack::topmost(const AtomicString& tagName) const
@@ -434,7 +434,7 @@ HTMLElementStack::ElementRecord* HTMLElementStack::topmost(const AtomicString& t
if (pos->stackItem()->matchesHTMLTag(tagName))
return pos;
}
- return 0;
+ return nullptr;
}
bool HTMLElementStack::contains(Element* element) const
@@ -613,7 +613,7 @@ HTMLElementStack::ElementRecord* HTMLElementStack::furthestBlockForFormattingEle
furthestBlock = pos;
}
ASSERT_NOT_REACHED();
- return 0;
+ return nullptr;
}
void HTMLElementStack::trace(Visitor* visitor)
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLFormattingElementList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698