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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2145823002: Implement the overflow-anchor CSS property as an opt-out for ScrollAnchoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 IntRect rectToCopyOnScroll() const; 750 IntRect rectToCopyOnScroll() const;
751 751
752 bool isFrameViewScrollbar(const Widget* child) const { return horizontalScro llbar() == child || verticalScrollbar() == child; } 752 bool isFrameViewScrollbar(const Widget* child) const { return horizontalScro llbar() == child || verticalScrollbar() == child; }
753 753
754 ScrollingCoordinator* scrollingCoordinator() const; 754 ScrollingCoordinator* scrollingCoordinator() const;
755 755
756 void prepareLayoutAnalyzer(); 756 void prepareLayoutAnalyzer();
757 std::unique_ptr<TracedValue> analyzerCounters(); 757 std::unique_ptr<TracedValue> analyzerCounters();
758 758
759 // LayoutObject for the viewport-defining element (see Document::viewportDef iningElement). 759 // LayoutObject for the viewport-defining element (see Document::viewportDef iningElement).
760 LayoutObject* viewportLayoutObject(); 760 LayoutObject* viewportLayoutObject() const;
761 761
762 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c onst; 762 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c onst;
763 763
764 template <typename Function> void forAllNonThrottledFrameViews(const Functio n&); 764 template <typename Function> void forAllNonThrottledFrameViews(const Functio n&);
765 765
766 void setNeedsUpdateViewportIntersection(); 766 void setNeedsUpdateViewportIntersection();
767 void updateViewportIntersectionsForSubtree(DocumentLifecycle::LifecycleState targetState); 767 void updateViewportIntersectionsForSubtree(DocumentLifecycle::LifecycleState targetState);
768 void updateViewportIntersectionIfNeeded(); 768 void updateViewportIntersectionIfNeeded();
769 void notifyRenderThrottlingObservers(); 769 void notifyRenderThrottlingObservers();
770 void updateThrottlingStatus(); 770 void updateThrottlingStatus();
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 949 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
950 setIsVisuallyNonEmpty(); 950 setIsVisuallyNonEmpty();
951 } 951 }
952 952
953 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 953 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
954 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 954 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
955 955
956 } // namespace blink 956 } // namespace blink
957 957
958 #endif // FrameView_h 958 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698