Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(878)

Side by Side Diff: Source/WebCore/page/IntersectionObserver.idl

Issue 346930043: V1 of making sure that IO doesn't keep document alive longer than it should
Patch Set: Created 5 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2016 Apple Inc. All rights reserved. 2 * Copyright (C) 2016 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 * THE POSSIBILITY OF SUCH DAMAGE. 23 * THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 // https://wicg.github.io/IntersectionObserver/ 26 // https://wicg.github.io/IntersectionObserver/
27 27
28 [ 28 [
29 Conditional=INTERSECTION_OBSERVER, 29 Conditional=INTERSECTION_OBSERVER,
30 ConstructorCallWith=Document, 30 ConstructorCallWith=Document,
31 ConstructorMayThrowException, 31 ConstructorMayThrowException,
32 Constructor(IntersectionObserverCallback callback, optional IntersectionObse rverInit options), 32 Constructor(IntersectionObserverCallback callback, optional IntersectionObse rverInit options),
33 CustomIsReachable,
33 ImplementationLacksVTable, 34 ImplementationLacksVTable,
34 EnabledAtRuntime=IntersectionObserver 35 EnabledAtRuntime=IntersectionObserver,
36 JSCustomMarkFunction,
35 ] interface IntersectionObserver { 37 ] interface IntersectionObserver {
36 readonly attribute Element? root; 38 readonly attribute Element? root;
37 readonly attribute DOMString rootMargin; 39 readonly attribute DOMString rootMargin;
38 readonly attribute sequence<double> thresholds; 40 readonly attribute sequence<double> thresholds;
39 41
40 void observe(Element target); 42 void observe(Element target);
41 void unobserve(Element target); 43 void unobserve(Element target);
42 void disconnect(); 44 void disconnect();
43 sequence<IntersectionObserverEntry> takeRecords(); 45 sequence<IntersectionObserverEntry> takeRecords();
44 }; 46 };
45 47
46 [ 48 [
47 Conditional=INTERSECTION_OBSERVER, 49 Conditional=INTERSECTION_OBSERVER,
48 EnabledBySetting=IntersectionObserver 50 EnabledBySetting=IntersectionObserver
49 ] 51 ]
50 dictionary IntersectionObserverInit { 52 dictionary IntersectionObserverInit {
51 Element? root = null; 53 Element? root = null;
52 DOMString rootMargin = "0px"; 54 DOMString rootMargin = "0px";
53 (double or sequence<double>) threshold = 0.0; 55 (double or sequence<double>) threshold = 0.0;
54 }; 56 };
OLDNEW
« no previous file with comments | « Source/WebCore/page/IntersectionObserver.cpp ('k') | Source/WebCore/page/IntersectionObserverCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b