Index: Source/core/html/HTMLMeterElement.cpp |
diff --git a/Source/core/html/HTMLMeterElement.cpp b/Source/core/html/HTMLMeterElement.cpp |
index 9f683caf1c4049f6b5079c960392873c8f41748a..a5a37487d61613d4491b32420970419bbc9da44f 100644 |
--- a/Source/core/html/HTMLMeterElement.cpp |
+++ b/Source/core/html/HTMLMeterElement.cpp |
@@ -38,7 +38,7 @@ namespace WebCore { |
using namespace HTMLNames; |
-HTMLMeterElement::HTMLMeterElement(const QualifiedName& tagName, Document* document) |
+HTMLMeterElement::HTMLMeterElement(const QualifiedName& tagName, Document& document) |
: LabelableElement(tagName, document) |
{ |
ASSERT(hasTagName(meterTag)); |
@@ -49,7 +49,7 @@ HTMLMeterElement::~HTMLMeterElement() |
{ |
} |
-PassRefPtr<HTMLMeterElement> HTMLMeterElement::create(const QualifiedName& tagName, Document* document) |
+PassRefPtr<HTMLMeterElement> HTMLMeterElement::create(const QualifiedName& tagName, Document& document) |
{ |
RefPtr<HTMLMeterElement> meter = adoptRef(new HTMLMeterElement(tagName, document)); |
meter->ensureUserAgentShadowRoot(); |
@@ -226,11 +226,11 @@ void HTMLMeterElement::didAddUserAgentShadowRoot(ShadowRoot* root) |
{ |
ASSERT(!m_value); |
- RefPtr<MeterInnerElement> inner = MeterInnerElement::create(&document()); |
+ RefPtr<MeterInnerElement> inner = MeterInnerElement::create(document()); |
root->appendChild(inner); |
- RefPtr<MeterBarElement> bar = MeterBarElement::create(&document()); |
- m_value = MeterValueElement::create(&document()); |
+ RefPtr<MeterBarElement> bar = MeterBarElement::create(document()); |
+ m_value = MeterValueElement::create(document()); |
m_value->setWidthPercentage(0); |
m_value->updatePseudo(); |
bar->appendChild(m_value); |