Chromium Code Reviews

Unified Diff: Source/core/html/shadow/MeterShadowElement.h

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests build Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/html/shadow/MeterShadowElement.h
diff --git a/Source/core/html/shadow/MeterShadowElement.h b/Source/core/html/shadow/MeterShadowElement.h
index a31426717ceacd3406f50649c1c60ed04c39eb90..6779768081d133d3bcaf2b3b77fcfce2527c4b44 100644
--- a/Source/core/html/shadow/MeterShadowElement.h
+++ b/Source/core/html/shadow/MeterShadowElement.h
@@ -41,7 +41,7 @@ class RenderMeter;
class MeterShadowElement : public HTMLDivElement {
protected:
- MeterShadowElement(Document*);
+ MeterShadowElement(Document&);
HTMLMeterElement* meterElement() const;
private:
@@ -50,30 +50,30 @@ private:
class MeterInnerElement FINAL : public MeterShadowElement {
public:
- static PassRefPtr<MeterInnerElement> create(Document*);
+ static PassRefPtr<MeterInnerElement> create(Document&);
private:
- MeterInnerElement(Document*);
+ MeterInnerElement(Document&);
virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE;
virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
};
class MeterBarElement FINAL : public MeterShadowElement {
private:
- MeterBarElement(Document*);
+ MeterBarElement(Document&);
public:
- static PassRefPtr<MeterBarElement> create(Document*);
+ static PassRefPtr<MeterBarElement> create(Document&);
};
class MeterValueElement FINAL : public MeterShadowElement {
public:
- static PassRefPtr<MeterValueElement> create(Document*);
+ static PassRefPtr<MeterValueElement> create(Document&);
void setWidthPercentage(double);
void updatePseudo() { setPart(valuePseudoId()); }
private:
- MeterValueElement(Document*);
+ MeterValueElement(Document&);
const AtomicString& valuePseudoId() const;
};

Powered by Google App Engine