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

Unified Diff: Source/core/rendering/ClipPathOperation.h

Issue 123503002: Mark the AtomicString(const String&) constructor as explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 months 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/loader/FormSubmission.cpp ('k') | Source/core/svg/SVGAElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/ClipPathOperation.h
diff --git a/Source/core/rendering/ClipPathOperation.h b/Source/core/rendering/ClipPathOperation.h
index b6d9c0b8db407ea06aa0bba7975fa2785c209c70..171634dd23dc037bf4bff2047f9a5dd64792a94b 100644
--- a/Source/core/rendering/ClipPathOperation.h
+++ b/Source/core/rendering/ClipPathOperation.h
@@ -65,13 +65,13 @@ protected:
class ReferenceClipPathOperation : public ClipPathOperation {
public:
- static PassRefPtr<ReferenceClipPathOperation> create(const String& url, const String& fragment)
+ static PassRefPtr<ReferenceClipPathOperation> create(const String& url, const AtomicString& fragment)
{
return adoptRef(new ReferenceClipPathOperation(url, fragment));
}
const String& url() const { return m_url; }
- const String& fragment() const { return m_fragment; }
+ const AtomicString& fragment() const { return m_fragment; }
private:
virtual bool operator==(const ClipPathOperation& o) const OVERRIDE
@@ -79,7 +79,7 @@ private:
return isSameType(o) && m_url == static_cast<const ReferenceClipPathOperation&>(o).m_url;
}
- ReferenceClipPathOperation(const String& url, const String& fragment)
+ ReferenceClipPathOperation(const String& url, const AtomicString& fragment)
: ClipPathOperation(REFERENCE)
, m_url(url)
, m_fragment(fragment)
@@ -87,7 +87,7 @@ private:
}
String m_url;
- String m_fragment;
+ AtomicString m_fragment;
};
DEFINE_TYPE_CASTS(ReferenceClipPathOperation, ClipPathOperation, op, op->type() == ClipPathOperation::REFERENCE, op.type() == ClipPathOperation::REFERENCE);
« no previous file with comments | « Source/core/loader/FormSubmission.cpp ('k') | Source/core/svg/SVGAElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698