Title: [107786] trunk/Source/WebCore
- Revision
- 107786
- Author
- [email protected]
- Date
- 2012-02-15 00:21:29 -0800 (Wed, 15 Feb 2012)
Log Message
ShadowRoot: Remove a public static factory function which doesn't have any callers.
https://bugs.webkit.org/show_bug.cgi?id=78668
Reviewed by Kent Tamura.
No tests. No change in behavior.
* dom/ShadowRoot.cpp:
(WebCore::ShadowRoot::create):
* dom/ShadowRoot.h:
(ShadowRoot):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (107785 => 107786)
--- trunk/Source/WebCore/ChangeLog 2012-02-15 08:04:44 UTC (rev 107785)
+++ trunk/Source/WebCore/ChangeLog 2012-02-15 08:21:29 UTC (rev 107786)
@@ -1,3 +1,17 @@
+2012-02-15 Hayato Ito <[email protected]>
+
+ ShadowRoot: Remove a public static factory function which doesn't have any callers.
+ https://bugs.webkit.org/show_bug.cgi?id=78668
+
+ Reviewed by Kent Tamura.
+
+ No tests. No change in behavior.
+
+ * dom/ShadowRoot.cpp:
+ (WebCore::ShadowRoot::create):
+ * dom/ShadowRoot.h:
+ (ShadowRoot):
+
2012-02-14 Hao Zheng <[email protected]>
Cleanup pending transaction queue in Database.
Modified: trunk/Source/WebCore/dom/ShadowRoot.cpp (107785 => 107786)
--- trunk/Source/WebCore/dom/ShadowRoot.cpp 2012-02-15 08:04:44 UTC (rev 107785)
+++ trunk/Source/WebCore/dom/ShadowRoot.cpp 2012-02-15 08:21:29 UTC (rev 107786)
@@ -110,7 +110,7 @@
}
ASSERT(purpose != CreatingUserAgentShadowRoot || !element->hasShadowRoot());
- RefPtr<ShadowRoot> shadowRoot = create(element->document());
+ RefPtr<ShadowRoot> shadowRoot = adoptRef(new ShadowRoot(element->document()));
ec = 0;
element->setShadowRoot(shadowRoot, ec);
Modified: trunk/Source/WebCore/dom/ShadowRoot.h (107785 => 107786)
--- trunk/Source/WebCore/dom/ShadowRoot.h 2012-02-15 08:04:44 UTC (rev 107785)
+++ trunk/Source/WebCore/dom/ShadowRoot.h 2012-02-15 08:21:29 UTC (rev 107786)
@@ -41,7 +41,6 @@
class ShadowRoot : public DocumentFragment, public TreeScope, public DoublyLinkedListNode<ShadowRoot> {
friend class WTF::DoublyLinkedListNode<ShadowRoot>;
public:
- static PassRefPtr<ShadowRoot> create(Document*);
static PassRefPtr<ShadowRoot> create(Element*, ExceptionCode&);
// FIXME: We will support multiple shadow subtrees, however current implementation does not work well
@@ -95,11 +94,6 @@
OwnPtr<HTMLContentSelector> m_selector;
};
-inline PassRefPtr<ShadowRoot> ShadowRoot::create(Document* document)
-{
- return adoptRef(new ShadowRoot(document));
-}
-
inline void ShadowRoot::clearNeedsReattachHostChildrenAndShadow()
{
m_needsRecalculateContent = false;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes