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

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

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/ProgressShadowElement.h
diff --git a/Source/core/html/shadow/ProgressShadowElement.h b/Source/core/html/shadow/ProgressShadowElement.h
index 25c36d8df7844e9e3f72915ded8c828614723e3d..928dc7e54888c9712f8f12618caf8de96aeb892e 100644
--- a/Source/core/html/shadow/ProgressShadowElement.h
+++ b/Source/core/html/shadow/ProgressShadowElement.h
@@ -41,7 +41,7 @@ class HTMLProgressElement;
class ProgressShadowElement : public HTMLDivElement {
public:
- ProgressShadowElement(Document*);
+ ProgressShadowElement(Document&);
HTMLProgressElement* progressElement() const;
protected:
@@ -50,43 +50,43 @@ protected:
class ProgressInnerElement FINAL : public ProgressShadowElement {
public:
- static PassRefPtr<ProgressInnerElement> create(Document*);
+ static PassRefPtr<ProgressInnerElement> create(Document&);
private:
- ProgressInnerElement(Document*);
+ ProgressInnerElement(Document&);
virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
virtual bool rendererIsNeeded(const NodeRenderingContext&);
};
-inline PassRefPtr<ProgressInnerElement> ProgressInnerElement::create(Document* document)
+inline PassRefPtr<ProgressInnerElement> ProgressInnerElement::create(Document& document)
{
return adoptRef(new ProgressInnerElement(document));
}
class ProgressBarElement FINAL : public ProgressShadowElement {
public:
- static PassRefPtr<ProgressBarElement> create(Document*);
+ static PassRefPtr<ProgressBarElement> create(Document&);
private:
- ProgressBarElement(Document*);
+ ProgressBarElement(Document&);
};
-inline PassRefPtr<ProgressBarElement> ProgressBarElement::create(Document* document)
+inline PassRefPtr<ProgressBarElement> ProgressBarElement::create(Document& document)
{
return adoptRef(new ProgressBarElement(document));
}
class ProgressValueElement FINAL : public ProgressShadowElement {
public:
- static PassRefPtr<ProgressValueElement> create(Document*);
+ static PassRefPtr<ProgressValueElement> create(Document&);
void setWidthPercentage(double);
private:
- ProgressValueElement(Document*);
+ ProgressValueElement(Document&);
};
-inline PassRefPtr<ProgressValueElement> ProgressValueElement::create(Document* document)
+inline PassRefPtr<ProgressValueElement> ProgressValueElement::create(Document& document)
{
return adoptRef(new ProgressValueElement(document));
}
« no previous file with comments | « Source/core/html/shadow/PickerIndicatorElement.cpp ('k') | Source/core/html/shadow/ProgressShadowElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698