Build fix after r143030. We need to keep updatedRange around until createMarkupIntern...
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2013 21:50:46 +0000 (21:50 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2013 21:50:46 +0000 (21:50 +0000)
* editing/markup.cpp:
(WebCore::createMarkup):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@143048 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/editing/markup.cpp

index a49faa1d84f123519d3d5c6f9d1b37bd4d7acdc5..84b16009d8b96748646a2e4c244b3aa69d7d084a 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-15  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Build fix after r143030. We need to keep updatedRange around until createMarkupInternal returns.
+
+        * editing/markup.cpp:
+        (WebCore::createMarkup):
+
 2013-02-15  Rik Cabanier  <cabanier@adobe.com>
 
         Add platform support for -webkit-background-blend-mode to CG context
index 93265c7dd93d26355e75755659da04c06ba759b1..59db42af6c17b1724b053ea917203f536b47d702 100644 (file)
@@ -647,8 +647,9 @@ String createMarkup(const Range* range, Vector<Node*>* nodes, EAnnotateForInterc
     Frame* frame = document->frame();
     DeleteButtonControllerDisableScope deleteButtonControllerDisableScope(frame);
 
+    RefPtr<Range> updatedRangeRef;
     if (frame) {
-        RefPtr<Range> updatedRangeRef = frame->editor()->avoidIntersectionWithDeleteButtonController(range);
+        updatedRangeRef = frame->editor()->avoidIntersectionWithDeleteButtonController(range);
         updatedRange = updatedRangeRef.get();
         if (!updatedRange)
             return emptyString();