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

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

Issue 2499853002: Fixed clip resize for document.rootScroller with inertTopControls (Closed)
Patch Set: Fixed issues + Rebase Created 4 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 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 void invalidatePaintForTickmarks(); 407 void invalidatePaintForTickmarks();
408 408
409 // Since the compositor can resize the viewport due to browser controls and 409 // Since the compositor can resize the viewport due to browser controls and
410 // commit scroll offsets before a WebView::resize occurs, we need to adjust 410 // commit scroll offsets before a WebView::resize occurs, we need to adjust
411 // our scroll extents to prevent clamping the scroll offsets. 411 // our scroll extents to prevent clamping the scroll offsets.
412 void setBrowserControlsViewportAdjustment(float); 412 void setBrowserControlsViewportAdjustment(float);
413 IntSize browserControlsSize() const { 413 IntSize browserControlsSize() const {
414 return IntSize(0, ceilf(m_browserControlsViewportAdjustment)); 414 return IntSize(0, ceilf(m_browserControlsViewportAdjustment));
415 } 415 }
416 416
417 PaintLayer* layer() const override;
418
417 IntSize maximumScrollOffsetInt() const override; 419 IntSize maximumScrollOffsetInt() const override;
418 420
419 // ScrollableArea interface 421 // ScrollableArea interface
420 void getTickmarks(Vector<IntRect>&) const override; 422 void getTickmarks(Vector<IntRect>&) const override;
421 IntRect scrollableAreaBoundingBox() const override; 423 IntRect scrollableAreaBoundingBox() const override;
422 bool scrollAnimatorEnabled() const override; 424 bool scrollAnimatorEnabled() const override;
423 bool usesCompositedScrolling() const override; 425 bool usesCompositedScrolling() const override;
424 bool shouldScrollOnMainThread() const override; 426 bool shouldScrollOnMainThread() const override;
425 GraphicsLayer* layerForScrolling() const override; 427 GraphicsLayer* layerForScrolling() const override;
426 GraphicsLayer* layerForHorizontalScrollbar() const override; 428 GraphicsLayer* layerForHorizontalScrollbar() const override;
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 widget.isFrameView()); 1150 widget.isFrameView());
1149 DEFINE_TYPE_CASTS(FrameView, 1151 DEFINE_TYPE_CASTS(FrameView,
1150 ScrollableArea, 1152 ScrollableArea,
1151 scrollableArea, 1153 scrollableArea,
1152 scrollableArea->isFrameView(), 1154 scrollableArea->isFrameView(),
1153 scrollableArea.isFrameView()); 1155 scrollableArea.isFrameView());
1154 1156
1155 } // namespace blink 1157 } // namespace blink
1156 1158
1157 #endif // FrameView_h 1159 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698