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

Side by Side Diff: Source/core/rendering/RenderBox.h

Issue 708283002: RLSA needsLayout on customscrollbar thickness change. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments 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
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.) 443 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.)
444 virtual LayoutUnit availableLogicalWidth() const { return contentLogicalWidt h(); } 444 virtual LayoutUnit availableLogicalWidth() const { return contentLogicalWidt h(); }
445 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; 445 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const;
446 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const; 446 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const;
447 447
448 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height. 448 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height.
449 // Relative positioning is one of those cases, since left/top offsets are ph ysical. 449 // Relative positioning is one of those cases, since left/top offsets are ph ysical.
450 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; } 450 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; }
451 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); } 451 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); }
452 452
453 void setCustomScrollbarThicknessChanged(bool thicknessChanged) { m_customScr ollbarThicknessChanged = thicknessChanged; }
skobes 2014/11/14 03:32:10 Instead of adding a new boolean, can you put this
MuVen 2014/11/14 06:10:25 Done.
454 bool customScrollbarThicknessChanged() const { return m_customScrollbarThick nessChanged; }
455
453 virtual int verticalScrollbarWidth() const; 456 virtual int verticalScrollbarWidth() const;
454 int horizontalScrollbarHeight() const; 457 int horizontalScrollbarHeight() const;
455 int instrinsicScrollbarLogicalWidth() const; 458 int instrinsicScrollbarLogicalWidth() const;
456 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } 459 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); }
457 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); 460 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1);
458 bool canBeScrolledAndHasScrollableArea() const; 461 bool canBeScrolledAndHasScrollableArea() const;
459 virtual bool canBeProgramaticallyScrolled() const; 462 virtual bool canBeProgramaticallyScrolled() const;
460 virtual void autoscroll(const IntPoint&); 463 virtual void autoscroll(const IntPoint&);
461 bool canAutoscroll() const; 464 bool canAutoscroll() const;
462 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; 465 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 LayoutUnit m_minPreferredLogicalWidth; 761 LayoutUnit m_minPreferredLogicalWidth;
759 762
760 // The preferred logical width of the element if it never breaks any lines a t all. 763 // The preferred logical width of the element if it never breaks any lines a t all.
761 LayoutUnit m_maxPreferredLogicalWidth; 764 LayoutUnit m_maxPreferredLogicalWidth;
762 765
763 // Our overflow information. 766 // Our overflow information.
764 OwnPtr<RenderOverflow> m_overflow; 767 OwnPtr<RenderOverflow> m_overflow;
765 768
766 private: 769 private:
767 OwnPtr<RenderBoxRareData> m_rareData; 770 OwnPtr<RenderBoxRareData> m_rareData;
771
772 unsigned m_customScrollbarThicknessChanged : 1;
768 }; 773 };
769 774
770 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBox, isBox()); 775 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBox, isBox());
771 776
772 inline RenderBox* RenderBox::previousSiblingBox() const 777 inline RenderBox* RenderBox::previousSiblingBox() const
773 { 778 {
774 return toRenderBox(previousSibling()); 779 return toRenderBox(previousSibling());
775 } 780 }
776 781
777 inline RenderBox* RenderBox::nextSiblingBox() const 782 inline RenderBox* RenderBox::nextSiblingBox() const
(...skipping 27 matching lines...) Expand all
805 if (UNLIKELY(inlineBoxWrapper() != 0)) 810 if (UNLIKELY(inlineBoxWrapper() != 0))
806 deleteLineBoxWrapper(); 811 deleteLineBoxWrapper();
807 } 812 }
808 813
809 ensureRareData().m_inlineBoxWrapper = boxWrapper; 814 ensureRareData().m_inlineBoxWrapper = boxWrapper;
810 } 815 }
811 816
812 } // namespace blink 817 } // namespace blink
813 818
814 #endif // RenderBox_h 819 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698