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

Side by Side Diff: Source/core/dom/Element.idl

Issue 701723007: Adding Element.closest() API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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/dom/Element.cpp ('k') | Source/core/dom/SelectorQuery.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) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 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,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; 50 [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
51 51
52 // DOM4 52 // DOM4
53 [Reflect] attribute DOMString id; 53 [Reflect] attribute DOMString id;
54 readonly attribute DOMString? namespaceURI; 54 readonly attribute DOMString? namespaceURI;
55 readonly attribute DOMString? prefix; 55 readonly attribute DOMString? prefix;
56 readonly attribute DOMString? localName; 56 readonly attribute DOMString? localName;
57 57
58 [RaisesException] boolean matches(DOMString selectors); 58 [RaisesException] boolean matches(DOMString selectors);
59 [RaisesException] Element closest(DOMString selectors);
59 60
60 // Common extensions 61 // Common extensions
61 62
62 readonly attribute long offsetLeft; 63 readonly attribute long offsetLeft;
63 readonly attribute long offsetTop; 64 readonly attribute long offsetTop;
64 readonly attribute long offsetWidth; 65 readonly attribute long offsetWidth;
65 readonly attribute long offsetHeight; 66 readonly attribute long offsetHeight;
66 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element offsetParent; 67 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element offsetParent;
67 readonly attribute long clientLeft; 68 readonly attribute long clientLeft;
68 readonly attribute long clientTop; 69 readonly attribute long clientTop;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 attribute EventHandler onselectstart; 126 attribute EventHandler onselectstart;
126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 127 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 128 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 129 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 130 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
130 attribute EventHandler onwheel; 131 attribute EventHandler onwheel;
131 }; 132 };
132 133
133 Element implements ParentNode; 134 Element implements ParentNode;
134 Element implements ChildNode; 135 Element implements ChildNode;
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/SelectorQuery.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698