| 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 #ifndef IntersectionObservation_h | 5 #ifndef IntersectionObservation_h |
| 6 #define IntersectionObservation_h | 6 #define IntersectionObservation_h |
| 7 | 7 |
| 8 #include "core/dom/DOMHighResTimeStamp.h" | 8 #include "core/dom/DOMHighResTimeStamp.h" |
| 9 #include "platform/geometry/LayoutRect.h" | 9 #include "platform/geometry/LayoutRect.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void initializeGeometry(IntersectionGeometry&); | 43 void initializeGeometry(IntersectionGeometry&); |
| 44 void clipToRoot(LayoutRect&); | 44 void clipToRoot(LayoutRect&); |
| 45 void clipToFrameView(IntersectionGeometry&); | 45 void clipToFrameView(IntersectionGeometry&); |
| 46 bool computeGeometry(IntersectionGeometry&); | 46 bool computeGeometry(IntersectionGeometry&); |
| 47 | 47 |
| 48 Member<IntersectionObserver> m_observer; | 48 Member<IntersectionObserver> m_observer; |
| 49 | 49 |
| 50 // TODO(szager): Why Node instead of Element? Because NodeIntersectionObser
verData::createWeakPtr() | 50 // TODO(szager): Why Node instead of Element? Because NodeIntersectionObser
verData::createWeakPtr() |
| 51 // returns a WeakPtr<Node>, which cannot be coerced into a WeakPtr<Element>.
When oilpan rolls out, | 51 // returns a WeakPtr<Node>, which cannot be coerced into a WeakPtr<Element>.
When oilpan rolls out, |
| 52 // this can be changed to WeakMember<Element>. | 52 // this can be changed to WeakMember<Element>. |
| 53 WeakPtrWillBeWeakMember<Node> m_target; | 53 WeakMember<Node> m_target; |
| 54 | 54 |
| 55 unsigned m_active : 1; | 55 unsigned m_active : 1; |
| 56 unsigned m_shouldReportRootBounds : 1; | 56 unsigned m_shouldReportRootBounds : 1; |
| 57 unsigned m_lastThresholdIndex : 30; | 57 unsigned m_lastThresholdIndex : 30; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| 61 | 61 |
| 62 #endif // IntersectionObservation_h | 62 #endif // IntersectionObservation_h |
| OLD | NEW |