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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserver.idl

Issue 2046973003: IntersectionObserver: throw exceptions as spec mandates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/IntersectionObserver.idl
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.idl b/third_party/WebKit/Source/core/dom/IntersectionObserver.idl
index 0a0bc61dba6f71d254042aece0ba95380b5b273f..fa93787bb29a0f22d08310027d41c827ddc8eaf3 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.idl
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.idl
@@ -13,10 +13,10 @@ callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry
MeasureAs=IntersectionObserver_Constructor,
RuntimeEnabled=IntersectionObserver,
] interface IntersectionObserver {
- void observe(Element target);
- void unobserve(Element target);
- void disconnect();
- sequence<IntersectionObserverEntry> takeRecords();
+ [RaisesException] void observe(Element target);
+ [RaisesException] void unobserve(Element target);
+ [RaisesException] void disconnect();
+ [RaisesException] sequence<IntersectionObserverEntry> takeRecords();
readonly attribute Element? root;
readonly attribute DOMString rootMargin;
readonly attribute FrozenArray<double> thresholds;

Powered by Google App Engine
This is Rietveld 408576698