Title: [127740] trunk/Source/WebKit/efl
Revision
127740
Author
commit-qu...@webkit.org
Date
2012-09-06 07:38:30 -0700 (Thu, 06 Sep 2012)

Log Message

[EFL] Remove unnecessary logic in ewk_frame_source_get.
https://bugs.webkit.org/show_bug.cgi?id=95828

Patch by Kangil Han <kangil....@samsung.com> on 2012-09-06
Reviewed by Kenneth Rohde Christiansen.

Removed unnecessary logic that checks if <html> tag exists in document.
WebKit automatically fill out <html></html> tags if they are not existed.

* ewk/ewk_frame.cpp:
(ewk_frame_source_get):

Modified Paths

Diff

Modified: trunk/Source/WebKit/efl/ChangeLog (127739 => 127740)


--- trunk/Source/WebKit/efl/ChangeLog	2012-09-06 14:36:04 UTC (rev 127739)
+++ trunk/Source/WebKit/efl/ChangeLog	2012-09-06 14:38:30 UTC (rev 127740)
@@ -1,3 +1,16 @@
+2012-09-06  Kangil Han  <kangil....@samsung.com>
+
+        [EFL] Remove unnecessary logic in ewk_frame_source_get.
+        https://bugs.webkit.org/show_bug.cgi?id=95828
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        Removed unnecessary logic that checks if <html> tag exists in document.
+        WebKit automatically fill out <html></html> tags if they are not existed.
+
+        * ewk/ewk_frame.cpp:
+        (ewk_frame_source_get):
+
 2012-09-05  Kangil Han  <kangil....@samsung.com>
 
         [EFL] Remove '+=' usage in String

Modified: trunk/Source/WebKit/efl/ewk/ewk_frame.cpp (127739 => 127740)


--- trunk/Source/WebKit/efl/ewk/ewk_frame.cpp	2012-09-06 14:36:04 UTC (rev 127739)
+++ trunk/Source/WebKit/efl/ewk/ewk_frame.cpp	2012-09-06 14:38:30 UTC (rev 127740)
@@ -1659,15 +1659,6 @@
             }
         }
 
-    // Try to get <head> and <body> tags if <html> tag was not found.
-    if (builder.isEmpty()) {
-        if (smartData->frame->document()->head())
-            builder.append(smartData->frame->document()->head()->outerHTML());
-
-        if (smartData->frame->document()->body())
-            builder.append(smartData->frame->document()->body()->outerHTML());
-    }
-
     CString utf8String = builder.toString().utf8();
     size_t sourceLength = utf8String.length();
     *frameSource = static_cast<char*>(malloc(sourceLength + 1));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to