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

Unified Diff: Source/core/html/HTMLLinkElement.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/HTMLLegendElement.cpp ('k') | Source/core/html/HTMLMapElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.cpp
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
index 6851d7ca399ae4609b67af2671fef8af52f2b2ce..6095285cc7510c244dd03e61cbb0e45745021296 100644
--- a/Source/core/html/HTMLLinkElement.cpp
+++ b/Source/core/html/HTMLLinkElement.cpp
@@ -205,7 +205,7 @@ LinkResource* HTMLLinkElement::linkResourceToProcess()
bool visible = inDocument() && !m_isInShadowTree;
if (!visible) {
ASSERT(!linkStyle() || !linkStyle()->hasSheet());
- return 0;
+ return nullptr;
}
if (!m_link) {
@@ -227,14 +227,14 @@ LinkResource* HTMLLinkElement::linkResourceToProcess()
LinkStyle* HTMLLinkElement::linkStyle() const
{
if (!m_link || m_link->type() != LinkResource::Style)
- return 0;
+ return nullptr;
return static_cast<LinkStyle*>(m_link.get());
}
LinkImport* HTMLLinkElement::linkImport() const
{
if (!m_link || m_link->type() != LinkResource::Import)
- return 0;
+ return nullptr;
return static_cast<LinkImport*>(m_link.get());
}
@@ -242,7 +242,7 @@ Document* HTMLLinkElement::import() const
{
if (LinkImport* link = linkImport())
return link->importedDocument();
- return 0;
+ return nullptr;
}
void HTMLLinkElement::process()
« no previous file with comments | « Source/core/html/HTMLLegendElement.cpp ('k') | Source/core/html/HTMLMapElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698