| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 * version of this file under the LGPL, indicate your decision by | 46 * version of this file under the LGPL, indicate your decision by |
| 47 * deleting the provisions above and replace them with the notice and | 47 * deleting the provisions above and replace them with the notice and |
| 48 * other provisions required by the MPL or the GPL, as the case may be. | 48 * other provisions required by the MPL or the GPL, as the case may be. |
| 49 * If you do not delete the provisions above, a recipient may use your | 49 * If you do not delete the provisions above, a recipient may use your |
| 50 * version of this file under any of the LGPL, the MPL or the GPL. | 50 * version of this file under any of the LGPL, the MPL or the GPL. |
| 51 */ | 51 */ |
| 52 | 52 |
| 53 #include "config.h" | 53 #include "config.h" |
| 54 #include "core/html/HTMLDocument.h" | 54 #include "core/html/HTMLDocument.h" |
| 55 | 55 |
| 56 #include "HTMLNames.h" | |
| 57 #include "bindings/v8/ScriptController.h" | 56 #include "bindings/v8/ScriptController.h" |
| 57 #include "core/HTMLNames.h" |
| 58 #include "core/frame/DOMWindow.h" | 58 #include "core/frame/DOMWindow.h" |
| 59 #include "core/frame/FrameView.h" | 59 #include "core/frame/FrameView.h" |
| 60 #include "core/frame/LocalFrame.h" | 60 #include "core/frame/LocalFrame.h" |
| 61 #include "core/html/HTMLBodyElement.h" | 61 #include "core/html/HTMLBodyElement.h" |
| 62 #include "core/page/FocusController.h" | 62 #include "core/page/FocusController.h" |
| 63 #include "core/page/FrameTree.h" | 63 #include "core/page/FrameTree.h" |
| 64 #include "core/page/Page.h" | 64 #include "core/page/Page.h" |
| 65 #include "wtf/text/StringBuilder.h" | 65 #include "wtf/text/StringBuilder.h" |
| 66 | 66 |
| 67 namespace WebCore { | 67 namespace WebCore { |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 void HTMLDocument::writeln(DOMWindow* callingWindow, const Vector<String>& text,
ExceptionState& exceptionState) | 284 void HTMLDocument::writeln(DOMWindow* callingWindow, const Vector<String>& text,
ExceptionState& exceptionState) |
| 285 { | 285 { |
| 286 ASSERT(callingWindow); | 286 ASSERT(callingWindow); |
| 287 StringBuilder builder; | 287 StringBuilder builder; |
| 288 for (size_t i = 0; i < text.size(); ++i) | 288 for (size_t i = 0; i < text.size(); ++i) |
| 289 builder.append(text[i]); | 289 builder.append(text[i]); |
| 290 writeln(builder.toString(), callingWindow->document(), exceptionState); | 290 writeln(builder.toString(), callingWindow->document(), exceptionState); |
| 291 } | 291 } |
| 292 | 292 |
| 293 } | 293 } |
| OLD | NEW |