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

Side by Side Diff: Source/core/frame/Window.idl

Issue 752713002: Make getComputedStyle throw for incorrect first parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address issues Created 6 years 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/frame/LocalDOMWindow.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, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // DOM Level 2 AbstractView Interface 131 // DOM Level 2 AbstractView Interface
132 readonly attribute Document document; 132 readonly attribute Document document;
133 133
134 // CSSOM View Module 134 // CSSOM View Module
135 MediaQueryList matchMedia(DOMString query); 135 MediaQueryList matchMedia(DOMString query);
136 136
137 // styleMedia has been removed from the CSSOM View specification. 137 // styleMedia has been removed from the CSSOM View specification.
138 readonly attribute StyleMedia styleMedia; 138 readonly attribute StyleMedia styleMedia;
139 139
140 // DOM Level 2 Style Interface 140 // DOM Level 2 Style Interface
141 CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element el ement, 141 [TypeChecking=Interface] CSSStyleDeclaration getComputedStyle([Default=Undef ined] optional Element element,
142 [TreatUndefinedAs=NullString, Default=U ndefined] optional DOMString? pseudoElement); 142 [TreatUndefined As=NullString, Default=Undefined] optional DOMString? pseudoElement);
143 143
144 // WebKit extensions 144 // WebKit extensions
145 [MeasureAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undef ined] optional Element element, 145 [MeasureAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undef ined] optional Element element,
146 [TreatUndefine dAs=NullString, Default=Undefined] optional DOMString? pseudoElement); 146 [TreatUndefine dAs=NullString, Default=Undefined] optional DOMString? pseudoElement);
147 147
148 [Replaceable] readonly attribute double devicePixelRatio; 148 [Replaceable] readonly attribute double devicePixelRatio;
149 149
150 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache; 150 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache;
151 151
152 [RuntimeEnabled=SessionStorage, LogActivity=GetterOnly, RaisesException=Gett er] readonly attribute Storage sessionStorage; 152 [RuntimeEnabled=SessionStorage, LogActivity=GetterOnly, RaisesException=Gett er] readonly attribute Storage sessionStorage;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 217 // FIXME: make this typedef accurate once enough of http://crbug.com/240176
218 // is in place. 218 // is in place.
219 // FIXME: consider putting this typedef in an .idl file containing spec-wide 219 // FIXME: consider putting this typedef in an .idl file containing spec-wide
220 // utility type definitions. 220 // utility type definitions.
221 typedef MessagePort Transferable; 221 typedef MessagePort Transferable;
222 222
223 Window implements GlobalEventHandlers; 223 Window implements GlobalEventHandlers;
224 Window implements WindowBase64; 224 Window implements WindowBase64;
225 Window implements WindowEventHandlers; 225 Window implements WindowEventHandlers;
226 Window implements WindowTimers; 226 Window implements WindowTimers;
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698