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

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

Issue 14874002: Allow frames with overflow:hidden scroll in slow scrolling path when scaled up (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unnecessary changes Created 7 years, 7 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 | Annotate | Revision Log
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 int mapFromLayoutToCSSUnits(LayoutUnit); 81 int mapFromLayoutToCSSUnits(LayoutUnit);
82 LayoutUnit mapFromCSSToLayoutUnits(int); 82 LayoutUnit mapFromCSSToLayoutUnits(int);
83 83
84 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def ault 84 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def ault
85 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d efault 85 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d efault
86 void setMarginWidth(LayoutUnit); 86 void setMarginWidth(LayoutUnit);
87 void setMarginHeight(LayoutUnit); 87 void setMarginHeight(LayoutUnit);
88 88
89 virtual void setCanHaveScrollbars(bool); 89 virtual void setCanHaveScrollbars(bool);
90 void updateCanHaveScrollbars();
91 90
92 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation); 91 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation);
93 92
94 virtual bool avoidScrollbarCreation() const; 93 virtual bool avoidScrollbarCreation() const;
95 94
96 virtual void setContentsSize(const IntSize&); 95 virtual void setContentsSize(const IntSize&);
97 96
98 void layout(bool allowSubtree = true); 97 void layout(bool allowSubtree = true);
99 bool didFirstLayout() const; 98 bool didFirstLayout() const;
100 void layoutTimerFired(Timer<FrameView>*); 99 void layoutTimerFired(Timer<FrameView>*);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // Methods to convert points and rects between the coordinate space of the r enderer, and this view. 260 // Methods to convert points and rects between the coordinate space of the r enderer, and this view.
262 virtual IntRect convertFromRenderer(const RenderObject*, const IntRect&) con st; 261 virtual IntRect convertFromRenderer(const RenderObject*, const IntRect&) con st;
263 virtual IntRect convertToRenderer(const RenderObject*, const IntRect&) const ; 262 virtual IntRect convertToRenderer(const RenderObject*, const IntRect&) const ;
264 virtual IntPoint convertFromRenderer(const RenderObject*, const IntPoint&) c onst; 263 virtual IntPoint convertFromRenderer(const RenderObject*, const IntPoint&) c onst;
265 virtual IntPoint convertToRenderer(const RenderObject*, const IntPoint&) con st; 264 virtual IntPoint convertToRenderer(const RenderObject*, const IntPoint&) con st;
266 265
267 bool isFrameViewScrollCorner(RenderScrollbarPart* scrollCorner) const { retu rn m_scrollCorner == scrollCorner; } 266 bool isFrameViewScrollCorner(RenderScrollbarPart* scrollCorner) const { retu rn m_scrollCorner == scrollCorner; }
268 267
269 bool isScrollable(); 268 bool isScrollable();
270 269
271 enum ScrollbarModesCalculationStrategy { RulesFromWebContentOnly, AnyRule }; 270 enum ScrollbarModesCalculationStrategy {
271 RulesFromWebContent = 1 << 0,
272 RulesFromClient = 1 << 1,
273 RulesFromVisibleContentScaleFactor = 1 << 2,
274 AnyRule = -1,
275 };
272 void calculateScrollbarModesForLayout(ScrollbarMode& hMode, ScrollbarMode& v Mode, ScrollbarModesCalculationStrategy = AnyRule); 276 void calculateScrollbarModesForLayout(ScrollbarMode& hMode, ScrollbarMode& v Mode, ScrollbarModesCalculationStrategy = AnyRule);
273 277
274 // Normal delay 278 // Normal delay
275 static void setRepaintThrottlingDeferredRepaintDelay(double p); 279 static void setRepaintThrottlingDeferredRepaintDelay(double p);
276 // Negative value would mean that first few repaints happen without a delay 280 // Negative value would mean that first few repaints happen without a delay
277 static void setRepaintThrottlingnInitialDeferredRepaintDelayDuringLoading(do uble p); 281 static void setRepaintThrottlingnInitialDeferredRepaintDelayDuringLoading(do uble p);
278 // The delay grows on each repaint to this maximum value 282 // The delay grows on each repaint to this maximum value
279 static void setRepaintThrottlingMaxDeferredRepaintDelayDuringLoading(double p); 283 static void setRepaintThrottlingMaxDeferredRepaintDelayDuringLoading(double p);
280 // On each repaint the delay increses by this amount 284 // On each repaint the delay increses by this amount
281 static void setRepaintThrottlingDeferredRepaintDelayIncrementDuringLoading(d ouble p); 285 static void setRepaintThrottlingDeferredRepaintDelayIncrementDuringLoading(d ouble p);
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 ASSERT(!widget || widget->isFrameView()); 591 ASSERT(!widget || widget->isFrameView());
588 return static_cast<const FrameView*>(widget); 592 return static_cast<const FrameView*>(widget);
589 } 593 }
590 594
591 // This will catch anyone doing an unnecessary cast. 595 // This will catch anyone doing an unnecessary cast.
592 void toFrameView(const FrameView*); 596 void toFrameView(const FrameView*);
593 597
594 } // namespace WebCore 598 } // namespace WebCore
595 599
596 #endif // FrameView_h 600 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698