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

Unified Diff: Source/core/html/HTMLPlugInElement.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/HTMLPlugInElement.h ('k') | Source/core/html/HTMLSelectElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPlugInElement.cpp
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp
index ce19b32e0625727f92bd57b8c2ff75dc4208f123..5f5dd4f0eeab0b089444ad2e45ad77b2df31c1d0 100644
--- a/Source/core/html/HTMLPlugInElement.cpp
+++ b/Source/core/html/HTMLPlugInElement.cpp
@@ -299,7 +299,7 @@ SharedPersistent<v8::Object>* HTMLPlugInElement::pluginWrapper()
{
LocalFrame* frame = document().frame();
if (!frame)
- return 0;
+ return nullptr;
// If the host dynamically turns off JavaScript (or Java) we will still
// return the cached allocated Bindings::Instance. Not supporting this
@@ -322,7 +322,7 @@ Widget* HTMLPlugInElement::pluginWidget() const
{
if (RenderPart* renderPart = renderPartForJSBindings())
return renderPart->widget();
- return 0;
+ return nullptr;
}
bool HTMLPlugInElement::isPresentationAttribute(const QualifiedName& name) const
@@ -441,7 +441,7 @@ RenderEmbeddedObject* HTMLPlugInElement::renderEmbeddedObject() const
// HTMLObjectElement and HTMLEmbedElement may return arbitrary renderers
// when using fallback content.
if (!renderer() || !renderer()->isEmbeddedObject())
- return 0;
+ return nullptr;
return toRenderEmbeddedObject(renderer());
}
« no previous file with comments | « Source/core/html/HTMLPlugInElement.h ('k') | Source/core/html/HTMLSelectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698