htmlediting.cpp: unnecessary local variable cleanup
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Sep 2013 02:01:01 +0000 (02:01 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Sep 2013 02:01:01 +0000 (02:01 +0000)
https://bugs.webkit.org/show_bug.cgi?id=121903

Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-09-25
Reviewed by Darin Adler.

Code cleanup.

* editing/htmlediting.cpp:
(WebCore::lowestEditableAncestor):

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

Source/WebCore/ChangeLog
Source/WebCore/editing/htmlediting.cpp

index fd2396b705b6bdc4ac5a9d9e5ffa3c3a0d798f80..238db474937a6ebda8533c4220722cbca9ddcef5 100644 (file)
@@ -1,3 +1,15 @@
+2013-09-25  Santosh Mahto  <santosh.ma@samsung.com>
+
+        htmlediting.cpp: unnecessary local variable cleanup
+        https://bugs.webkit.org/show_bug.cgi?id=121903
+
+        Reviewed by Darin Adler.
+
+        Code cleanup.
+
+        * editing/htmlediting.cpp:
+        (WebCore::lowestEditableAncestor):
+
 2013-09-25  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r156432.
index 474ce9db6c1475bd8d6912e0acbaa0468231850e..8743b2410d756090d29e8ef92cf5ccece38ea2e8 100644 (file)
@@ -134,7 +134,6 @@ Node* lowestEditableAncestor(Node* node)
     if (!node)
         return 0;
     
-    Node* lowestRoot = 0;
     while (node) {
         if (node->rendererIsEditable())
             return node->rootEditableElement();
@@ -143,7 +142,7 @@ Node* lowestEditableAncestor(Node* node)
         node = node->parentNode();
     }
     
-    return lowestRoot;
+    return 0;
 }
 
 bool isEditablePosition(const Position& p, EditableType editableType, EUpdateStyle updateStyle)