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

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

Issue 1056983004: OverscrollGlow for mainThread-{BLINK CHANGES} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added function for comparison Created 5 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
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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height. 536 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height.
537 // Relative positioning is one of those cases, since left/top offsets are ph ysical. 537 // Relative positioning is one of those cases, since left/top offsets are ph ysical.
538 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; } 538 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; }
539 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); } 539 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); }
540 540
541 virtual int verticalScrollbarWidth() const; 541 virtual int verticalScrollbarWidth() const;
542 int horizontalScrollbarHeight() const; 542 int horizontalScrollbarHeight() const;
543 int intrinsicScrollbarLogicalWidth() const; 543 int intrinsicScrollbarLogicalWidth() const;
544 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } 544 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); }
545 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } 545 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); }
546 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); 546 virtual ScrollResultOneDimensional scroll(ScrollDirection, ScrollGranularity , float delta = 1);
547 bool canBeScrolledAndHasScrollableArea() const; 547 bool canBeScrolledAndHasScrollableArea() const;
548 virtual bool canBeProgramaticallyScrolled() const; 548 virtual bool canBeProgramaticallyScrolled() const;
549 virtual void autoscroll(const IntPoint&); 549 virtual void autoscroll(const IntPoint&);
550 bool canAutoscroll() const; 550 bool canAutoscroll() const;
551 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ; 551 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ;
552 static LayoutBox* findAutoscrollable(LayoutObject*); 552 static LayoutBox* findAutoscrollable(LayoutObject*);
553 virtual void stopAutoscroll() { } 553 virtual void stopAutoscroll() { }
554 virtual void panScroll(const IntPoint&); 554 virtual void panScroll(const IntPoint&);
555 555
556 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY( ) == OOVERLAY); } 556 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY( ) == OOVERLAY); }
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 if (UNLIKELY(inlineBoxWrapper() != 0)) 923 if (UNLIKELY(inlineBoxWrapper() != 0))
924 deleteLineBoxWrapper(); 924 deleteLineBoxWrapper();
925 } 925 }
926 926
927 ensureRareData().m_inlineBoxWrapper = boxWrapper; 927 ensureRareData().m_inlineBoxWrapper = boxWrapper;
928 } 928 }
929 929
930 } // namespace blink 930 } // namespace blink
931 931
932 #endif // LayoutBox_h 932 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698