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

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

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/HTMLWBRElement.cpp ('k') | Source/core/html/shadow/ProgressShadowElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/ProgressShadowElement.h
diff --git a/Source/core/html/shadow/ProgressShadowElement.h b/Source/core/html/shadow/ProgressShadowElement.h
index 39b28026adf4381a87bad948d9cb100e36390626..825b0b68437593bc4857bd50eb86409a87b53a7c 100644
--- a/Source/core/html/shadow/ProgressShadowElement.h
+++ b/Source/core/html/shadow/ProgressShadowElement.h
@@ -50,7 +50,7 @@ protected:
class ProgressInnerElement FINAL : public ProgressShadowElement {
public:
- static PassRefPtrWillBeRawPtr<ProgressInnerElement> create(Document&);
+ DECLARE_NODE_FACTORY(ProgressInnerElement);
private:
explicit ProgressInnerElement(Document&);
@@ -59,38 +59,23 @@ private:
virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
};
-inline PassRefPtrWillBeRawPtr<ProgressInnerElement> ProgressInnerElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new ProgressInnerElement(document));
-}
-
class ProgressBarElement FINAL : public ProgressShadowElement {
public:
- static PassRefPtrWillBeRawPtr<ProgressBarElement> create(Document&);
+ DECLARE_NODE_FACTORY(ProgressBarElement);
private:
explicit ProgressBarElement(Document&);
};
-inline PassRefPtrWillBeRawPtr<ProgressBarElement> ProgressBarElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new ProgressBarElement(document));
-}
-
class ProgressValueElement FINAL : public ProgressShadowElement {
public:
- static PassRefPtrWillBeRawPtr<ProgressValueElement> create(Document&);
+ DECLARE_NODE_FACTORY(ProgressValueElement);
void setWidthPercentage(double);
private:
explicit ProgressValueElement(Document&);
};
-inline PassRefPtrWillBeRawPtr<ProgressValueElement> ProgressValueElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new ProgressValueElement(document));
-}
-
}
#endif // ProgressShadowElement_h
« no previous file with comments | « Source/core/html/HTMLWBRElement.cpp ('k') | Source/core/html/shadow/ProgressShadowElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698