Index: Source/core/html/shadow/MeterShadowElement.cpp |
diff --git a/Source/core/html/shadow/MeterShadowElement.cpp b/Source/core/html/shadow/MeterShadowElement.cpp |
index 834b6fb8aa3ced3757cb72119d1569d8e33aed96..0064624f927c7f1de12099c68f4479638df202f6 100644 |
--- a/Source/core/html/shadow/MeterShadowElement.cpp |
+++ b/Source/core/html/shadow/MeterShadowElement.cpp |
@@ -42,7 +42,7 @@ namespace WebCore { |
using namespace HTMLNames; |
-inline MeterShadowElement::MeterShadowElement(Document* document) |
+inline MeterShadowElement::MeterShadowElement(Document& document) |
: HTMLDivElement(HTMLNames::divTag, document) |
{ |
} |
@@ -58,12 +58,12 @@ bool MeterShadowElement::rendererIsNeeded(const NodeRenderingContext& context) |
return render && !RenderTheme::theme().supportsMeter(render->style()->appearance()) && HTMLDivElement::rendererIsNeeded(context); |
} |
-inline MeterInnerElement::MeterInnerElement(Document* document) |
+inline MeterInnerElement::MeterInnerElement(Document& document) |
: MeterShadowElement(document) |
{ |
} |
-PassRefPtr<MeterInnerElement> MeterInnerElement::create(Document* document) |
+PassRefPtr<MeterInnerElement> MeterInnerElement::create(Document& document) |
{ |
RefPtr<MeterInnerElement> element = adoptRef(new MeterInnerElement(document)); |
element->setPart(AtomicString("-webkit-meter-inner-element", AtomicString::ConstructFromLiteral)); |
@@ -84,24 +84,24 @@ RenderObject* MeterInnerElement::createRenderer(RenderStyle*) |
return new RenderMeter(this); |
} |
-inline MeterBarElement::MeterBarElement(Document* document) |
+inline MeterBarElement::MeterBarElement(Document& document) |
: MeterShadowElement(document) |
{ |
} |
-PassRefPtr<MeterBarElement> MeterBarElement::create(Document* document) |
+PassRefPtr<MeterBarElement> MeterBarElement::create(Document& document) |
{ |
RefPtr<MeterBarElement> element = adoptRef(new MeterBarElement(document)); |
element->setPart(AtomicString("-webkit-meter-bar", AtomicString::ConstructFromLiteral)); |
return element.release(); |
} |
-inline MeterValueElement::MeterValueElement(Document* document) |
+inline MeterValueElement::MeterValueElement(Document& document) |
: MeterShadowElement(document) |
{ |
} |
-PassRefPtr<MeterValueElement> MeterValueElement::create(Document* document) |
+PassRefPtr<MeterValueElement> MeterValueElement::create(Document& document) |
{ |
RefPtr<MeterValueElement> element = adoptRef(new MeterValueElement(document)); |
element->updatePseudo(); |