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

Unified Diff: Source/core/html/shadow/SliderThumbElement.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
« no previous file with comments | « Source/core/html/shadow/ProgressShadowElement.cpp ('k') | Source/core/html/shadow/SliderThumbElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/SliderThumbElement.h
diff --git a/Source/core/html/shadow/SliderThumbElement.h b/Source/core/html/shadow/SliderThumbElement.h
index cccd93f6dc0da9782c1661587c7fd8e797bce4d8..0aecf9b5bb968fec4a73e38223e1f6e07d2e2b33 100644
--- a/Source/core/html/shadow/SliderThumbElement.h
+++ b/Source/core/html/shadow/SliderThumbElement.h
@@ -46,7 +46,7 @@ class FloatPoint;
class SliderThumbElement FINAL : public HTMLDivElement {
public:
- static PassRefPtr<SliderThumbElement> create(Document*);
+ static PassRefPtr<SliderThumbElement> create(Document&);
void setPositionFromValue();
@@ -60,7 +60,7 @@ public:
void setPositionFromPoint(const LayoutPoint&);
private:
- SliderThumbElement(Document*);
+ SliderThumbElement(Document&);
virtual RenderObject* createRenderer(RenderStyle*);
virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren();
virtual bool isDisabledFormControl() const OVERRIDE;
@@ -75,7 +75,7 @@ private:
inline PassRefPtr<Element> SliderThumbElement::cloneElementWithoutAttributesAndChildren()
{
- return create(&document());
+ return create(document());
}
inline SliderThumbElement* toSliderThumbElement(Node* node)
@@ -99,10 +99,10 @@ private:
class SliderContainerElement FINAL : public HTMLDivElement {
public:
- static PassRefPtr<SliderContainerElement> create(Document*);
+ static PassRefPtr<SliderContainerElement> create(Document&);
private:
- SliderContainerElement(Document*);
+ SliderContainerElement(Document&);
virtual RenderObject* createRenderer(RenderStyle*);
virtual const AtomicString& part() const;
};
« no previous file with comments | « Source/core/html/shadow/ProgressShadowElement.cpp ('k') | Source/core/html/shadow/SliderThumbElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698