Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / HTMLDocument.cpp
index 3183f5b..230b015 100644 (file)
@@ -275,8 +275,8 @@ void HTMLDocument::write(LocalDOMWindow* callingWindow, const Vector<String>& te
 {
     ASSERT(callingWindow);
     StringBuilder builder;
-    for (size_t i = 0; i < text.size(); ++i)
-        builder.append(text[i]);
+    for (const String& string : text)
+        builder.append(string);
     write(builder.toString(), callingWindow->document(), exceptionState);
 }
 
@@ -284,8 +284,8 @@ void HTMLDocument::writeln(LocalDOMWindow* callingWindow, const Vector<String>&
 {
     ASSERT(callingWindow);
     StringBuilder builder;
-    for (size_t i = 0; i < text.size(); ++i)
-        builder.append(text[i]);
+    for (const String& string : text)
+        builder.append(string);
     writeln(builder.toString(), callingWindow->document(), exceptionState);
 }