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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2897033002: Make room for any scrollbars in the content box and border box. (Closed)
Patch Set: Rebaseline tests that got wider/taller objects. Created 3 years, 6 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 int HorizontalScrollbarHeight() const; 1011 int HorizontalScrollbarHeight() const;
1012 int ScrollbarLogicalWidth() const { 1012 int ScrollbarLogicalWidth() const {
1013 return Style()->IsHorizontalWritingMode() ? VerticalScrollbarWidth() 1013 return Style()->IsHorizontalWritingMode() ? VerticalScrollbarWidth()
1014 : HorizontalScrollbarHeight(); 1014 : HorizontalScrollbarHeight();
1015 } 1015 }
1016 int ScrollbarLogicalHeight() const { 1016 int ScrollbarLogicalHeight() const {
1017 return Style()->IsHorizontalWritingMode() ? HorizontalScrollbarHeight() 1017 return Style()->IsHorizontalWritingMode() ? HorizontalScrollbarHeight()
1018 : VerticalScrollbarWidth(); 1018 : VerticalScrollbarWidth();
1019 } 1019 }
1020 1020
1021 // Return the width of the vertical scrollbar, unless it's larger than the
1022 // logical width of the content box, in which case we'll return that instead.
1023 // Scrollbar handling is quite bad in such situations, and this method here
1024 // is just to make sure that left-hand scrollbars don't mess up
1025 // scrollWidth. For the full story, visit crbug.com/724255
1026 LayoutUnit VerticalScrollbarWidthClampedToContentBox() const;
1027
1028 virtual ScrollResult Scroll(ScrollGranularity, const FloatSize&); 1021 virtual ScrollResult Scroll(ScrollGranularity, const FloatSize&);
1029 bool CanBeScrolledAndHasScrollableArea() const; 1022 bool CanBeScrolledAndHasScrollableArea() const;
1030 virtual bool CanBeProgramaticallyScrolled() const; 1023 virtual bool CanBeProgramaticallyScrolled() const;
1031 virtual void Autoscroll(const IntPoint&); 1024 virtual void Autoscroll(const IntPoint&);
1032 bool CanAutoscroll() const; 1025 bool CanAutoscroll() const;
1033 IntSize CalculateAutoscrollDirection( 1026 IntSize CalculateAutoscrollDirection(
1034 const IntPoint& point_in_root_frame) const; 1027 const IntPoint& point_in_root_frame) const;
1035 static LayoutBox* FindAutoscrollable(LayoutObject*); 1028 static LayoutBox* FindAutoscrollable(LayoutObject*);
1036 virtual void StopAutoscroll() {} 1029 virtual void StopAutoscroll() {}
1037 1030
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 break_value == EBreakBetween::kLeft || 1739 break_value == EBreakBetween::kLeft ||
1747 break_value == EBreakBetween::kPage || 1740 break_value == EBreakBetween::kPage ||
1748 break_value == EBreakBetween::kRecto || 1741 break_value == EBreakBetween::kRecto ||
1749 break_value == EBreakBetween::kRight || 1742 break_value == EBreakBetween::kRight ||
1750 break_value == EBreakBetween::kVerso; 1743 break_value == EBreakBetween::kVerso;
1751 } 1744 }
1752 1745
1753 } // namespace blink 1746 } // namespace blink
1754 1747
1755 #endif // LayoutBox_h 1748 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698