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

Unified Diff: Source/core/html/HTMLProgressElement.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/html/HTMLProgressElement.h ('k') | Source/core/html/HTMLQuoteElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLProgressElement.cpp
diff --git a/Source/core/html/HTMLProgressElement.cpp b/Source/core/html/HTMLProgressElement.cpp
index 97d12d6ae0439f12ce36873bb288fe9f24475ac5..c0b21a8f892142b0bb677919e70b65040b454dcd 100644
--- a/Source/core/html/HTMLProgressElement.cpp
+++ b/Source/core/html/HTMLProgressElement.cpp
@@ -39,7 +39,7 @@ using namespace HTMLNames;
const double HTMLProgressElement::IndeterminatePosition = -1;
const double HTMLProgressElement::InvalidPosition = -2;
-HTMLProgressElement::HTMLProgressElement(const QualifiedName& tagName, Document* document)
+HTMLProgressElement::HTMLProgressElement(const QualifiedName& tagName, Document& document)
: LabelableElement(tagName, document)
, m_value(0)
{
@@ -51,7 +51,7 @@ HTMLProgressElement::~HTMLProgressElement()
{
}
-PassRefPtr<HTMLProgressElement> HTMLProgressElement::create(const QualifiedName& tagName, Document* document)
+PassRefPtr<HTMLProgressElement> HTMLProgressElement::create(const QualifiedName& tagName, Document& document)
{
RefPtr<HTMLProgressElement> progress = adoptRef(new HTMLProgressElement(tagName, document));
progress->ensureUserAgentShadowRoot();
@@ -150,13 +150,13 @@ void HTMLProgressElement::didAddUserAgentShadowRoot(ShadowRoot* root)
{
ASSERT(!m_value);
- RefPtr<ProgressInnerElement> inner = ProgressInnerElement::create(&document());
+ RefPtr<ProgressInnerElement> inner = ProgressInnerElement::create(document());
inner->setPart(AtomicString("-webkit-progress-inner-element", AtomicString::ConstructFromLiteral));
root->appendChild(inner);
- RefPtr<ProgressBarElement> bar = ProgressBarElement::create(&document());
+ RefPtr<ProgressBarElement> bar = ProgressBarElement::create(document());
bar->setPart(AtomicString("-webkit-progress-bar", AtomicString::ConstructFromLiteral));
- RefPtr<ProgressValueElement> value = ProgressValueElement::create(&document());
+ RefPtr<ProgressValueElement> value = ProgressValueElement::create(document());
m_value = value.get();
m_value->setPart(AtomicString("-webkit-progress-value", AtomicString::ConstructFromLiteral));
m_value->setWidthPercentage(HTMLProgressElement::IndeterminatePosition * 100);
« no previous file with comments | « Source/core/html/HTMLProgressElement.h ('k') | Source/core/html/HTMLQuoteElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698