| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/dom/IntersectionObserver.h" | 5 #include "core/dom/IntersectionObserver.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "core/css/parser/CSSParserTokenRange.h" | 8 #include "core/css/parser/CSSParserTokenRange.h" |
| 9 #include "core/css/parser/CSSTokenizer.h" | 9 #include "core/css/parser/CSSTokenizer.h" |
| 10 #include "core/dom/ExceptionCode.h" | 10 #include "core/dom/ExceptionCode.h" |
| 11 #include "core/dom/ExecutionContext.h" | 11 #include "core/dom/ExecutionContext.h" |
| 12 #include "core/dom/IntersectionObserverCallback.h" | 12 #include "core/dom/IntersectionObserverCallback.h" |
| 13 #include "core/dom/IntersectionObserverController.h" | 13 #include "core/dom/IntersectionObserverController.h" |
| 14 #include "core/dom/IntersectionObserverEntry.h" | 14 #include "core/dom/IntersectionObserverEntry.h" |
| 15 #include "core/dom/IntersectionObserverInit.h" | 15 #include "core/dom/IntersectionObserverInit.h" |
| 16 #include "core/dom/NodeIntersectionObserverData.h" | 16 #include "core/dom/NodeIntersectionObserverData.h" |
| 17 #include "core/html/HTMLFrameOwnerElement.h" | 17 #include "core/html/HTMLFrameOwnerElement.h" |
| 18 #include "core/layout/LayoutView.h" | 18 #include "core/layout/LayoutView.h" |
| 19 #include "core/timing/DOMWindowPerformance.h" | 19 #include "core/timing/DOMWindowPerformance.h" |
| 20 #include "core/timing/Performance.h" | 20 #include "core/timing/Performance.h" |
| 21 #include "platform/Timer.h" | 21 #include "platform/Timer.h" |
| 22 #include "wtf/MainThread.h" | |
| 23 #include <algorithm> | 22 #include <algorithm> |
| 24 | 23 |
| 25 namespace blink { | 24 namespace blink { |
| 26 | 25 |
| 27 static void parseRootMargin(String rootMarginParameter, Vector<Length>& rootMarg
in, ExceptionState& exceptionState) | 26 static void parseRootMargin(String rootMarginParameter, Vector<Length>& rootMarg
in, ExceptionState& exceptionState) |
| 28 { | 27 { |
| 29 // TODO(szager): Make sure this exact syntax and behavior is spec-ed somewhe
re. | 28 // TODO(szager): Make sure this exact syntax and behavior is spec-ed somewhe
re. |
| 30 | 29 |
| 31 // The root margin argument accepts syntax similar to that for CSS margin: | 30 // The root margin argument accepts syntax similar to that for CSS margin: |
| 32 // | 31 // |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 { | 317 { |
| 319 #if ENABLE(OILPAN) | 318 #if ENABLE(OILPAN) |
| 320 visitor->template registerWeakMembers<IntersectionObserver, &IntersectionObs
erver::clearWeakMembers>(this); | 319 visitor->template registerWeakMembers<IntersectionObserver, &IntersectionObs
erver::clearWeakMembers>(this); |
| 321 #endif | 320 #endif |
| 322 visitor->trace(m_callback); | 321 visitor->trace(m_callback); |
| 323 visitor->trace(m_observations); | 322 visitor->trace(m_observations); |
| 324 visitor->trace(m_entries); | 323 visitor->trace(m_entries); |
| 325 } | 324 } |
| 326 | 325 |
| 327 } // namespace blink | 326 } // namespace blink |
| OLD | NEW |