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

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

Issue 699183004: Main-thread scroll if we have fixed-pos children and overflow:hidden. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 void scrollContentsIfNeededRecursive(); 239 void scrollContentsIfNeededRecursive();
240 240
241 // Methods to convert points and rects between the coordinate space of the r enderer, and this view. 241 // Methods to convert points and rects between the coordinate space of the r enderer, and this view.
242 IntRect convertFromRenderer(const RenderObject&, const IntRect&) const; 242 IntRect convertFromRenderer(const RenderObject&, const IntRect&) const;
243 IntRect convertToRenderer(const RenderObject&, const IntRect&) const; 243 IntRect convertToRenderer(const RenderObject&, const IntRect&) const;
244 IntPoint convertFromRenderer(const RenderObject&, const IntPoint&) const; 244 IntPoint convertFromRenderer(const RenderObject&, const IntPoint&) const;
245 IntPoint convertToRenderer(const RenderObject&, const IntPoint&) const; 245 IntPoint convertToRenderer(const RenderObject&, const IntPoint&) const;
246 246
247 bool isFrameViewScrollCorner(RenderScrollbarPart* scrollCorner) const { retu rn m_scrollCorner == scrollCorner; } 247 bool isFrameViewScrollCorner(RenderScrollbarPart* scrollCorner) const { retu rn m_scrollCorner == scrollCorner; }
248 248
249 enum ScrollingReasons {
250 Scrollable,
251 NotScrollableNoOverflow,
252 NotScrollableNotVisible,
253 NotScrollableExplicitlyDisabled
254 };
255
256 ScrollingReasons scrollingReasons();
249 bool isScrollable(); 257 bool isScrollable();
250 258
251 enum ScrollbarModesCalculationStrategy { RulesFromWebContentOnly, AnyRule }; 259 enum ScrollbarModesCalculationStrategy { RulesFromWebContentOnly, AnyRule };
252 void calculateScrollbarModesForLayoutAndSetViewportRenderer(ScrollbarMode& h Mode, ScrollbarMode& vMode, ScrollbarModesCalculationStrategy = AnyRule); 260 void calculateScrollbarModesForLayoutAndSetViewportRenderer(ScrollbarMode& h Mode, ScrollbarMode& vMode, ScrollbarModesCalculationStrategy = AnyRule);
253 261
254 virtual IntPoint lastKnownMousePosition() const override; 262 virtual IntPoint lastKnownMousePosition() const override;
255 bool shouldSetCursor() const; 263 bool shouldSetCursor() const;
256 264
257 void setCursor(const Cursor&); 265 void setCursor(const Cursor&);
258 266
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 } 835 }
828 836
829 private: 837 private:
830 RawPtrWillBeMember<FrameView> m_view; 838 RawPtrWillBeMember<FrameView> m_view;
831 bool m_originalValue; 839 bool m_originalValue;
832 }; 840 };
833 841
834 } // namespace blink 842 } // namespace blink
835 843
836 #endif // FrameView_h 844 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698