diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/frame/frame_view.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/frame/frame_view.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/chromium/third_party/blink/renderer/core/frame/frame_view.h b/chromium/third_party/blink/renderer/core/frame/frame_view.h index aa5e42ac59a..24de3107916 100644 --- a/chromium/third_party/blink/renderer/core/frame/frame_view.h +++ b/chromium/third_party/blink/renderer/core/frame/frame_view.h @@ -8,7 +8,6 @@ #include "third_party/blink/public/mojom/frame/lifecycle.mojom-blink.h" #include "third_party/blink/public/platform/viewport_intersection_state.h" #include "third_party/blink/renderer/core/frame/embedded_content_view.h" -#include "third_party/blink/renderer/core/frame/sticky_frame_tracker.h" #include "third_party/blink/renderer/core/layout/geometry/physical_rect.h" #include "third_party/blink/renderer/platform/wtf/casting.h" @@ -17,11 +16,7 @@ namespace blink { class Frame; struct IntrinsicSizingInfo; -// clang::lto_visibility_public is necessary to prevent the compiler from -// performing a vtable optimization that crashes the renderer. See -// crbug.com/1062006. -class CORE_EXPORT [[clang::lto_visibility_public]] FrameView - : public EmbeddedContentView { +class CORE_EXPORT FrameView : public EmbeddedContentView { public: FrameView(const IntRect& frame_rect) : EmbeddedContentView(frame_rect) {} ~FrameView() override = default; @@ -67,8 +62,7 @@ class CORE_EXPORT [[clang::lto_visibility_public]] FrameView const ViewportIntersectionState& intersection_state) = 0; virtual void VisibilityForThrottlingChanged() = 0; virtual bool LifecycleUpdatesThrottled() const { return false; } - // Returns whether we can skip tracking sticky frames. - bool UpdateViewportIntersection(unsigned, bool); + void UpdateViewportIntersection(unsigned, bool); // FrameVisibility is tracked by the browser process, which may suppress // lifecycle updates for a frame outside the viewport. void UpdateFrameVisibility(bool); @@ -78,15 +72,12 @@ class CORE_EXPORT [[clang::lto_visibility_public]] FrameView virtual void VisibilityChanged(blink::mojom::FrameVisibility visibilty) = 0; private: - StickyFrameTracker* GetStickyFrameTracker(); - PhysicalRect rect_in_parent_; base::TimeTicks rect_in_parent_stable_since_; blink::mojom::FrameVisibility frame_visibility_ = blink::mojom::FrameVisibility::kRenderedInViewport; bool hidden_for_throttling_; bool subtree_throttled_; - std::unique_ptr<StickyFrameTracker> sticky_frame_tracker_; }; template <> |