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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 "bindings/v8/ScriptController.h" | 56 #include "bindings/v8/ScriptController.h" |
57 #include "core/HTMLNames.h" | 57 #include "core/HTMLNames.h" |
58 #include "core/frame/DOMWindow.h" | 58 #include "core/frame/LocalDOMWindow.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 { |
68 | 68 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 return attrSet; | 265 return attrSet; |
266 } | 266 } |
267 | 267 |
268 bool HTMLDocument::isCaseSensitiveAttribute(const QualifiedName& attributeName) | 268 bool HTMLDocument::isCaseSensitiveAttribute(const QualifiedName& attributeName) |
269 { | 269 { |
270 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = createHtmlCa
seInsensitiveAttributesSet(); | 270 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = createHtmlCa
seInsensitiveAttributesSet(); |
271 bool isPossibleHTMLAttr = !attributeName.hasPrefix() && (attributeName.names
paceURI() == nullAtom); | 271 bool isPossibleHTMLAttr = !attributeName.hasPrefix() && (attributeName.names
paceURI() == nullAtom); |
272 return !isPossibleHTMLAttr || !htmlCaseInsensitiveAttributesSet->contains(at
tributeName.localName().impl()); | 272 return !isPossibleHTMLAttr || !htmlCaseInsensitiveAttributesSet->contains(at
tributeName.localName().impl()); |
273 } | 273 } |
274 | 274 |
275 void HTMLDocument::write(DOMWindow* callingWindow, const Vector<String>& text, E
xceptionState& exceptionState) | 275 void HTMLDocument::write(LocalDOMWindow* callingWindow, const Vector<String>& te
xt, ExceptionState& exceptionState) |
276 { | 276 { |
277 ASSERT(callingWindow); | 277 ASSERT(callingWindow); |
278 StringBuilder builder; | 278 StringBuilder builder; |
279 for (size_t i = 0; i < text.size(); ++i) | 279 for (size_t i = 0; i < text.size(); ++i) |
280 builder.append(text[i]); | 280 builder.append(text[i]); |
281 write(builder.toString(), callingWindow->document(), exceptionState); | 281 write(builder.toString(), callingWindow->document(), exceptionState); |
282 } | 282 } |
283 | 283 |
284 void HTMLDocument::writeln(DOMWindow* callingWindow, const Vector<String>& text,
ExceptionState& exceptionState) | 284 void HTMLDocument::writeln(LocalDOMWindow* 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 |