| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 blink { | 67 namespace blink { |
| 68 | 68 |
| 69 using namespace HTMLNames; | 69 using namespace HTMLNames; |
| 70 | 70 |
| 71 HTMLDocument::HTMLDocument(const DocumentInit& initializer, DocumentClassFlags e
xtendedDocumentClasses) | 71 HTMLDocument::HTMLDocument(const DocumentInit& initializer, DocumentClassFlags e
xtendedDocumentClasses) |
| 72 : Document(initializer, HTMLDocumentClass | extendedDocumentClasses) | 72 : Document(initializer, HTMLDocumentClass | extendedDocumentClasses) |
| 73 { | 73 { |
| 74 ScriptWrappable::init(this); | |
| 75 clearXMLVersion(); | 74 clearXMLVersion(); |
| 76 if (isSrcdocDocument() || initializer.importsController()) { | 75 if (isSrcdocDocument() || initializer.importsController()) { |
| 77 ASSERT(inNoQuirksMode()); | 76 ASSERT(inNoQuirksMode()); |
| 78 lockCompatibilityMode(); | 77 lockCompatibilityMode(); |
| 79 } | 78 } |
| 80 } | 79 } |
| 81 | 80 |
| 82 HTMLDocument::~HTMLDocument() | 81 HTMLDocument::~HTMLDocument() |
| 83 { | 82 { |
| 84 } | 83 } |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 void HTMLDocument::writeln(LocalDOMWindow* callingWindow, const Vector<String>&
text, ExceptionState& exceptionState) | 283 void HTMLDocument::writeln(LocalDOMWindow* callingWindow, const Vector<String>&
text, ExceptionState& exceptionState) |
| 285 { | 284 { |
| 286 ASSERT(callingWindow); | 285 ASSERT(callingWindow); |
| 287 StringBuilder builder; | 286 StringBuilder builder; |
| 288 for (size_t i = 0; i < text.size(); ++i) | 287 for (size_t i = 0; i < text.size(); ++i) |
| 289 builder.append(text[i]); | 288 builder.append(text[i]); |
| 290 writeln(builder.toString(), callingWindow->document(), exceptionState); | 289 writeln(builder.toString(), callingWindow->document(), exceptionState); |
| 291 } | 290 } |
| 292 | 291 |
| 293 } | 292 } |
| OLD | NEW |