Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: Source/core/html/HTMLDocument.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLDivElement.cpp ('k') | Source/core/html/HTMLElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDivElement.cpp ('k') | Source/core/html/HTMLElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698