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

Unified Diff: Source/core/html/shadow/MeterShadowElement.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
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();
« no previous file with comments | « Source/core/html/shadow/MeterShadowElement.h ('k') | Source/core/html/shadow/PasswordGeneratorButtonElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698