Commit d8320f4b authored by Pramod B S's avatar Pramod B S Committed by Commit Bot

Use nullptr instead of 0 in a few header files

Change-Id: I6c688cd5019fd0a425093b44c62981c0bb6bc8d2
Reviewed-on: https://chromium-review.googlesource.com/683934
Commit-Queue: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: default avatarPhilip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505279}
parent 7fb41ed3
...@@ -152,7 +152,7 @@ class CORE_EXPORT FontFace : public GarbageCollectedFinalized<FontFace>, ...@@ -152,7 +152,7 @@ class CORE_EXPORT FontFace : public GarbageCollectedFinalized<FontFace>,
void SetPropertyFromString(const Document*, void SetPropertyFromString(const Document*,
const String&, const String&,
CSSPropertyID, CSSPropertyID,
ExceptionState* = 0); ExceptionState* = nullptr);
bool SetPropertyFromStyle(const StylePropertySet&, CSSPropertyID); bool SetPropertyFromStyle(const StylePropertySet&, CSSPropertyID);
bool SetPropertyValue(const CSSValue*, CSSPropertyID); bool SetPropertyValue(const CSSValue*, CSSPropertyID);
bool SetFamilyValue(const CSSValue&); bool SetFamilyValue(const CSSValue&);
......
...@@ -68,7 +68,7 @@ class CORE_EXPORT StyleRuleBase ...@@ -68,7 +68,7 @@ class CORE_EXPORT StyleRuleBase
StyleRuleBase* Copy() const; StyleRuleBase* Copy() const;
// FIXME: There shouldn't be any need for the null parent version. // FIXME: There shouldn't be any need for the null parent version.
CSSRule* CreateCSSOMWrapper(CSSStyleSheet* parent_sheet = 0) const; CSSRule* CreateCSSOMWrapper(CSSStyleSheet* parent_sheet = nullptr) const;
CSSRule* CreateCSSOMWrapper(CSSRule* parent_rule) const; CSSRule* CreateCSSOMWrapper(CSSRule* parent_rule) const;
DECLARE_TRACE(); DECLARE_TRACE();
......
...@@ -64,7 +64,7 @@ class CORE_EXPORT FlatTreeTraversal { ...@@ -64,7 +64,7 @@ class CORE_EXPORT FlatTreeTraversal {
static Node* LastChild(const Node&); static Node* LastChild(const Node&);
static bool HasChildren(const Node&); static bool HasChildren(const Node&);
static ContainerNode* Parent(const Node&, ParentTraversalDetails* = 0); static ContainerNode* Parent(const Node&, ParentTraversalDetails* = nullptr);
static Element* ParentElement(const Node&); static Element* ParentElement(const Node&);
static Node* NextSibling(const Node&); static Node* NextSibling(const Node&);
...@@ -150,10 +150,10 @@ class CORE_EXPORT FlatTreeTraversal { ...@@ -150,10 +150,10 @@ class CORE_EXPORT FlatTreeTraversal {
static Node* TraverseChild(const Node&, TraversalDirection); static Node* TraverseChild(const Node&, TraversalDirection);
static ContainerNode* TraverseParent(const Node&, static ContainerNode* TraverseParent(const Node&,
ParentTraversalDetails* = 0); ParentTraversalDetails* = nullptr);
// TODO(hayato): Make ParentTraversalDetails be aware of slot elements too. // TODO(hayato): Make ParentTraversalDetails be aware of slot elements too.
static ContainerNode* TraverseParentForV0(const Node&, static ContainerNode* TraverseParentForV0(const Node&,
ParentTraversalDetails* = 0); ParentTraversalDetails* = nullptr);
static ContainerNode* TraverseParentOrHost(const Node&); static ContainerNode* TraverseParentOrHost(const Node&);
static Node* TraverseNextSibling(const Node&); static Node* TraverseNextSibling(const Node&);
......
...@@ -55,7 +55,7 @@ class CORE_EXPORT FormData final ...@@ -55,7 +55,7 @@ class CORE_EXPORT FormData final
DEFINE_WRAPPERTYPEINFO(); DEFINE_WRAPPERTYPEINFO();
public: public:
static FormData* Create(HTMLFormElement* form = 0) { static FormData* Create(HTMLFormElement* form = nullptr) {
return new FormData(form); return new FormData(form);
} }
......
...@@ -466,7 +466,7 @@ CSSPropertyID SVGElement::CssPropertyIdForSVGAttributeName( ...@@ -466,7 +466,7 @@ CSSPropertyID SVGElement::CssPropertyIdForSVGAttributeName(
if (!attr_name.NamespaceURI().IsNull()) if (!attr_name.NamespaceURI().IsNull())
return CSSPropertyInvalid; return CSSPropertyInvalid;
static HashMap<StringImpl*, CSSPropertyID>* property_name_to_id_map = 0; static HashMap<StringImpl*, CSSPropertyID>* property_name_to_id_map = nullptr;
if (!property_name_to_id_map) { if (!property_name_to_id_map) {
property_name_to_id_map = new HashMap<StringImpl*, CSSPropertyID>; property_name_to_id_map = new HashMap<StringImpl*, CSSPropertyID>;
// This is a list of all base CSS and SVG CSS properties which are exposed // This is a list of all base CSS and SVG CSS properties which are exposed
......
...@@ -163,7 +163,7 @@ class CORE_EXPORT SVGElement : public Element { ...@@ -163,7 +163,7 @@ class CORE_EXPORT SVGElement : public Element {
virtual bool HaveLoadedRequiredResources(); virtual bool HaveLoadedRequiredResources();
void InvalidateRelativeLengthClients(SubtreeLayoutScope* = 0); void InvalidateRelativeLengthClients(SubtreeLayoutScope* = nullptr);
void AddToPropertyMap(SVGAnimatedPropertyBase*); void AddToPropertyMap(SVGAnimatedPropertyBase*);
......
...@@ -97,7 +97,7 @@ class XMLDocumentParser final : public ScriptableDocumentParser, ...@@ -97,7 +97,7 @@ class XMLDocumentParser final : public ScriptableDocumentParser,
static bool ParseDocumentFragment( static bool ParseDocumentFragment(
const String&, const String&,
DocumentFragment*, DocumentFragment*,
Element* parent = 0, Element* parent = nullptr,
ParserContentPolicy = kAllowScriptingContent); ParserContentPolicy = kAllowScriptingContent);
// Used by the XMLHttpRequest to check if the responseXML was well formed. // Used by the XMLHttpRequest to check if the responseXML was well formed.
...@@ -118,7 +118,7 @@ class XMLDocumentParser final : public ScriptableDocumentParser, ...@@ -118,7 +118,7 @@ class XMLDocumentParser final : public ScriptableDocumentParser,
void SetScriptStartPosition(TextPosition); void SetScriptStartPosition(TextPosition);
private: private:
explicit XMLDocumentParser(Document&, LocalFrameView* = 0); explicit XMLDocumentParser(Document&, LocalFrameView* = nullptr);
XMLDocumentParser(DocumentFragment*, Element*, ParserContentPolicy); XMLDocumentParser(DocumentFragment*, Element*, ParserContentPolicy);
// From DocumentParser // From DocumentParser
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
namespace blink { namespace blink {
Document* XMLDocumentParserScope::current_document_ = 0; Document* XMLDocumentParserScope::current_document_ = nullptr;
XMLDocumentParserScope::XMLDocumentParserScope(Document* document) XMLDocumentParserScope::XMLDocumentParserScope(Document* document)
: old_document_(current_document_), : old_document_(current_document_),
......
...@@ -153,7 +153,7 @@ class Database final : public GarbageCollectedFinalized<Database>, ...@@ -153,7 +153,7 @@ class Database final : public GarbageCollectedFinalized<Database>,
SQLTransactionErrorCallback*, SQLTransactionErrorCallback*,
VoidCallback* success_callback, VoidCallback* success_callback,
bool read_only, bool read_only,
const ChangeVersionData* = 0); const ChangeVersionData* = nullptr);
Vector<String> PerformGetTableNames(); Vector<String> PerformGetTableNames();
void ReportOpenDatabaseResult(int error_site, void ReportOpenDatabaseResult(int error_site,
......
...@@ -116,8 +116,8 @@ class PLATFORM_EXPORT BitmapImage final : public Image { ...@@ -116,8 +116,8 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
kCertain // The repetition count is known to be correct. kCertain // The repetition count is known to be correct.
}; };
BitmapImage(const SkBitmap&, ImageObserver* = 0); BitmapImage(const SkBitmap&, ImageObserver* = nullptr);
BitmapImage(ImageObserver* = 0, bool is_multi_part = false); BitmapImage(ImageObserver* = nullptr, bool is_multi_part = false);
void Draw(PaintCanvas*, void Draw(PaintCanvas*,
const PaintFlags&, const PaintFlags&,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment