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

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

Issue 59693007: Get rid of custom code for HTMLDocument.write() / writeln() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Extend layout test Created 7 years, 1 month 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
« no previous file with comments | « Source/core/html/HTMLDocument.cpp ('k') | no next file » | 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 interface HTMLDocument : Document { 21 interface HTMLDocument : Document {
22 [Custom, CustomElementCallbacks] void open(); 22 [Custom, CustomElementCallbacks] void open();
23 void close(); 23 void close();
24 [Custom, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, CustomElementC allbacks] void write([Default=Undefined] optional DOMString text); 24
25 [Custom, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, CustomElementC allbacks] void writeln([Default=Undefined] optional DOMString text); 25 // We support multiple DOMString arguments to match FF / IE, e.g.:
26 // document.write("a", "b", "c") --> document.write("abc")
27 // document.write() --> document.write("")
28 [CallWith=ActiveWindow, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, CustomElementCallbacks] void write(DOMString... text);
29 [CallWith=ActiveWindow, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, CustomElementCallbacks] void writeln(DOMString... text);
26 30
27 readonly attribute HTMLCollection embeds; 31 readonly attribute HTMLCollection embeds;
28 readonly attribute HTMLCollection plugins; 32 readonly attribute HTMLCollection plugins;
29 readonly attribute HTMLCollection scripts; 33 readonly attribute HTMLCollection scripts;
30 34
31 // Extensions 35 // Extensions
32 36
33 [Replaceable, ImplementedAs=allForBinding] readonly attribute HTMLAllCollect ion all; 37 [Replaceable, ImplementedAs=allForBinding] readonly attribute HTMLAllCollect ion all;
34 38
35 [DeprecateAs=DocumentClear] void clear(); 39 [DeprecateAs=DocumentClear] void clear();
36 40
37 [DeprecateAs=CaptureEvents] void captureEvents(); 41 [DeprecateAs=CaptureEvents] void captureEvents();
38 [DeprecateAs=ReleaseEvents] void releaseEvents(); 42 [DeprecateAs=ReleaseEvents] void releaseEvents();
39 43
40 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString dir; 44 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString dir;
41 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString designM ode; 45 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString designM ode;
42 readonly attribute DOMString compatMode; 46 readonly attribute DOMString compatMode;
43 47
44 readonly attribute Element activeElement; 48 readonly attribute Element activeElement;
45 boolean hasFocus(); 49 boolean hasFocus();
46 50
47 // Deprecated attributes 51 // Deprecated attributes
48 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString bgColor ; 52 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString bgColor ;
49 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString fgColor ; 53 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString fgColor ;
50 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString alinkCo lor; 54 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString alinkCo lor;
51 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString linkCol or; 55 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString linkCol or;
52 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString vlinkCo lor; 56 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString vlinkCo lor;
53 }; 57 };
54 58
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDocument.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698