Title: [87875] trunk/Source/WebCore
Revision
87875
Author
[email protected]
Date
2011-06-01 19:49:37 -0700 (Wed, 01 Jun 2011)

Log Message

2011-06-01  Abhishek Arya  <[email protected]>

        Unreviewed.

        Coding style nit. Move ec=0 initialization, change
        recommended by Alexey in bug.
        https://bugs.webkit.org/show_bug.cgi?id=60831

        * dom/Document.cpp:
        (WebCore::Document::setBody):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (87874 => 87875)


--- trunk/Source/WebCore/ChangeLog	2011-06-02 02:23:45 UTC (rev 87874)
+++ trunk/Source/WebCore/ChangeLog	2011-06-02 02:49:37 UTC (rev 87875)
@@ -1,3 +1,14 @@
+2011-06-01  Abhishek Arya  <[email protected]>
+
+        Unreviewed.
+
+        Coding style nit. Move ec=0 initialization, change
+        recommended by Alexey in bug.
+        https://bugs.webkit.org/show_bug.cgi?id=60831
+
+        * dom/Document.cpp:
+        (WebCore::Document::setBody):
+
 2011-06-01  Hayato Ito  <[email protected]>
 
         Reviewed by Kent Tamura.

Modified: trunk/Source/WebCore/dom/Document.cpp (87874 => 87875)


--- trunk/Source/WebCore/dom/Document.cpp	2011-06-02 02:23:45 UTC (rev 87874)
+++ trunk/Source/WebCore/dom/Document.cpp	2011-06-02 02:49:37 UTC (rev 87875)
@@ -2031,14 +2031,13 @@
 
 void Document::setBody(PassRefPtr<HTMLElement> newBody, ExceptionCode& ec)
 {
-    ec = 0;
-
     if (!newBody || !documentElement() || !newBody->hasTagName(bodyTag)) { 
         ec = HIERARCHY_REQUEST_ERR;
         return;
     }
 
     if (newBody->document() && newBody->document() != this) {
+        ec = 0;
         RefPtr<Node> node = importNode(newBody.get(), true, ec);
         if (ec)
             return;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to