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

Unified Diff: Source/core/html/HTMLBDIElement.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/HTMLAreaElement.cpp ('k') | Source/core/html/HTMLBRElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLBDIElement.h
diff --git a/Source/core/html/HTMLBDIElement.h b/Source/core/html/HTMLBDIElement.h
index 852a8527ae8c273bbfa845207571d9480e5860ad..52db54e936990494173f9afad51b6e5e4f314117 100644
--- a/Source/core/html/HTMLBDIElement.h
+++ b/Source/core/html/HTMLBDIElement.h
@@ -27,13 +27,10 @@ namespace WebCore {
class HTMLBDIElement FINAL : public HTMLElement {
public:
- static PassRefPtrWillBeRawPtr<HTMLBDIElement> create(Document& document)
- {
- return adoptRefWillBeRefCountedGarbageCollected(new HTMLBDIElement(document));
- }
+ DECLARE_NODE_FACTORY(HTMLBDIElement);
private:
- explicit HTMLBDIElement(Document& document)
+ inline explicit HTMLBDIElement(Document& document)
: HTMLElement(HTMLNames::bdiTag, document)
{
// FIXME: Rename setSelfOrAncestorHasDirAutoAttribute to reflect the fact bdi also uses this flag.
@@ -41,6 +38,8 @@ private:
}
};
+DEFINE_NODE_FACTORY(HTMLBDIElement)
+
} // namespace WebCore
#endif
« no previous file with comments | « Source/core/html/HTMLAreaElement.cpp ('k') | Source/core/html/HTMLBRElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698