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>,
void SetPropertyFromString(const Document*,
const String&,
CSSPropertyID,
ExceptionState* = 0);
ExceptionState* = nullptr);
bool SetPropertyFromStyle(const StylePropertySet&, CSSPropertyID);
bool SetPropertyValue(const CSSValue*, CSSPropertyID);
bool SetFamilyValue(const CSSValue&);
......
......@@ -68,7 +68,7 @@ class CORE_EXPORT StyleRuleBase
StyleRuleBase* Copy() const;
// 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;
DECLARE_TRACE();
......
......@@ -64,7 +64,7 @@ class CORE_EXPORT FlatTreeTraversal {
static Node* LastChild(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 Node* NextSibling(const Node&);
......@@ -150,10 +150,10 @@ class CORE_EXPORT FlatTreeTraversal {
static Node* TraverseChild(const Node&, TraversalDirection);
static ContainerNode* TraverseParent(const Node&,
ParentTraversalDetails* = 0);
ParentTraversalDetails* = nullptr);
// TODO(hayato): Make ParentTraversalDetails be aware of slot elements too.
static ContainerNode* TraverseParentForV0(const Node&,
ParentTraversalDetails* = 0);
ParentTraversalDetails* = nullptr);
static ContainerNode* TraverseParentOrHost(const Node&);
static Node* TraverseNextSibling(const Node&);
......
......@@ -55,7 +55,7 @@ class CORE_EXPORT FormData final
DEFINE_WRAPPERTYPEINFO();
public:
static FormData* Create(HTMLFormElement* form = 0) {
static FormData* Create(HTMLFormElement* form = nullptr) {
return new FormData(form);
}
......
......@@ -466,7 +466,7 @@ CSSPropertyID SVGElement::CssPropertyIdForSVGAttributeName(
if (!attr_name.NamespaceURI().IsNull())
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) {
property_name_to_id_map = new HashMap<StringImpl*, CSSPropertyID>;
// 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 {
virtual bool HaveLoadedRequiredResources();
void InvalidateRelativeLengthClients(SubtreeLayoutScope* = 0);
void InvalidateRelativeLengthClients(SubtreeLayoutScope* = nullptr);
void AddToPropertyMap(SVGAnimatedPropertyBase*);
......
......@@ -97,7 +97,7 @@ class XMLDocumentParser final : public ScriptableDocumentParser,
static bool ParseDocumentFragment(
const String&,
DocumentFragment*,
Element* parent = 0,
Element* parent = nullptr,
ParserContentPolicy = kAllowScriptingContent);
// Used by the XMLHttpRequest to check if the responseXML was well formed.
......@@ -118,7 +118,7 @@ class XMLDocumentParser final : public ScriptableDocumentParser,
void SetScriptStartPosition(TextPosition);
private:
explicit XMLDocumentParser(Document&, LocalFrameView* = 0);
explicit XMLDocumentParser(Document&, LocalFrameView* = nullptr);
XMLDocumentParser(DocumentFragment*, Element*, ParserContentPolicy);
// From DocumentParser
......
......@@ -27,7 +27,7 @@
namespace blink {
Document* XMLDocumentParserScope::current_document_ = 0;
Document* XMLDocumentParserScope::current_document_ = nullptr;
XMLDocumentParserScope::XMLDocumentParserScope(Document* document)
: old_document_(current_document_),
......
......@@ -153,7 +153,7 @@ class Database final : public GarbageCollectedFinalized<Database>,
SQLTransactionErrorCallback*,
VoidCallback* success_callback,
bool read_only,
const ChangeVersionData* = 0);
const ChangeVersionData* = nullptr);
Vector<String> PerformGetTableNames();
void ReportOpenDatabaseResult(int error_site,
......
......@@ -116,8 +116,8 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
kCertain // The repetition count is known to be correct.
};
BitmapImage(const SkBitmap&, ImageObserver* = 0);
BitmapImage(ImageObserver* = 0, bool is_multi_part = false);
BitmapImage(const SkBitmap&, ImageObserver* = nullptr);
BitmapImage(ImageObserver* = nullptr, bool is_multi_part = false);
void Draw(PaintCanvas*,
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