Log Message
Unreviewed. Compile fix for r94511.
* dom/Range.cpp: (WebCore::Range::processContents): (WebCore::Range::processAncestorsAndTheirSiblings):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (94511 => 94512)
--- trunk/Source/WebCore/ChangeLog 2011-09-05 05:22:36 UTC (rev 94511)
+++ trunk/Source/WebCore/ChangeLog 2011-09-05 05:59:03 UTC (rev 94512)
@@ -1,5 +1,13 @@
2011-09-04 Abhishek Arya <[email protected]>
+ Unreviewed. Compile fix for r94511.
+
+ * dom/Range.cpp:
+ (WebCore::Range::processContents):
+ (WebCore::Range::processAncestorsAndTheirSiblings):
+
+2011-09-04 Abhishek Arya <[email protected]>
+
Crash in Range::processAncestorsAndTheirSiblings.
https://bugs.webkit.org/show_bug.cgi?id=67556
Modified: trunk/Source/WebCore/dom/Range.cpp (94511 => 94512)
--- trunk/Source/WebCore/dom/Range.cpp 2011-09-05 05:22:36 UTC (rev 94511)
+++ trunk/Source/WebCore/dom/Range.cpp 2011-09-05 05:59:03 UTC (rev 94512)
@@ -58,8 +58,6 @@
static WTF::RefCountedLeakCounter rangeCounter("Range");
#endif
-typedef Vector<RefPtr<Node> > NodeVector;
-
inline Range::Range(PassRefPtr<Document> ownerDocument)
: m_ownerDocument(ownerDocument)
, m_start(m_ownerDocument)
@@ -683,6 +681,8 @@
PassRefPtr<DocumentFragment> Range::processContents(ActionType action, ExceptionCode& ec)
{
+ typedef Vector<RefPtr<Node> > NodeVector;
+
RefPtr<DocumentFragment> fragment;
if (action == EXTRACT_CONTENTS || action == CLONE_CONTENTS)
fragment = DocumentFragment::create(m_ownerDocument.get());
@@ -877,6 +877,8 @@
PassRefPtr<Node> Range::processAncestorsAndTheirSiblings(ActionType action, Node* container, ContentsProcessDirection direction, PassRefPtr<Node> passedClonedContainer, Node* commonRoot, ExceptionCode& ec)
{
+ typedef Vector<RefPtr<Node> > NodeVector;
+
RefPtr<Node> clonedContainer = passedClonedContainer;
Vector<RefPtr<Node> > ancestors;
for (ContainerNode* n = container->parentNode(); n && n != commonRoot; n = n->parentNode())
_______________________________________________ webkit-changes mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes
