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

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: Created 5 years, 8 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
« no previous file with comments | « no previous file | Source/core/layout/LayoutBox.cpp » ('j') | Source/core/layout/LayoutBox.cpp » ('J')
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 virtual bool backgroundShouldAlwaysBeClipped() const { return false; } 84 virtual bool backgroundShouldAlwaysBeClipped() const { return false; }
85 85
86 // Use this with caution! No type checking is done! 86 // Use this with caution! No type checking is done!
87 LayoutBox* firstChildBox() const; 87 LayoutBox* firstChildBox() const;
88 LayoutBox* lastChildBox() const; 88 LayoutBox* lastChildBox() const;
89 89
90 int pixelSnappedWidth() const { return m_frameRect.pixelSnappedWidth(); } 90 int pixelSnappedWidth() const { return m_frameRect.pixelSnappedWidth(); }
91 int pixelSnappedHeight() const { return m_frameRect.pixelSnappedHeight(); } 91 int pixelSnappedHeight() const { return m_frameRect.pixelSnappedHeight(); }
92 92
93 IntPoint unUsedDelta() const { return m_unusedDelta; }
94
93 void setX(LayoutUnit x) 95 void setX(LayoutUnit x)
94 { 96 {
95 if (x == m_frameRect.x()) 97 if (x == m_frameRect.x())
96 return; 98 return;
97 m_frameRect.setX(x); 99 m_frameRect.setX(x);
98 frameRectChanged(); 100 frameRectChanged();
99 } 101 }
100 void setY(LayoutUnit y) 102 void setY(LayoutUnit y)
101 { 103 {
102 if (y == m_frameRect.y()) 104 if (y == m_frameRect.y())
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 { 822 {
821 // The frame rect may change because of layout of other objects. 823 // The frame rect may change because of layout of other objects.
822 // Should check this object for paint invalidation. 824 // Should check this object for paint invalidation.
823 if (!needsLayout()) 825 if (!needsLayout())
824 setMayNeedPaintInvalidation(); 826 setMayNeedPaintInvalidation();
825 } 827 }
826 828
827 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent). 829 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent).
828 LayoutRect m_frameRect; 830 LayoutRect m_frameRect;
829 831
832 // UnUsed Delta after scroll.
833 IntPoint m_unusedDelta;
majidvp 2015/04/23 18:25:08 It does not make sense to have this information in
MuVen 2015/04/27 12:53:46 Done.
834
830 // Our intrinsic height, used for min-height: min-content etc. Maintained by 835 // Our intrinsic height, used for min-height: min-content etc. Maintained by
831 // updateLogicalHeight. This is logicalHeight() before it is clamped to 836 // updateLogicalHeight. This is logicalHeight() before it is clamped to
832 // min/max. 837 // min/max.
833 mutable LayoutUnit m_intrinsicContentLogicalHeight; 838 mutable LayoutUnit m_intrinsicContentLogicalHeight;
834 839
835 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const; 840 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const;
836 841
837 LayoutRectOutsets m_marginBoxOutsets; 842 LayoutRectOutsets m_marginBoxOutsets;
838 843
839 protected: 844 protected:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 if (UNLIKELY(inlineBoxWrapper() != 0)) 924 if (UNLIKELY(inlineBoxWrapper() != 0))
920 deleteLineBoxWrapper(); 925 deleteLineBoxWrapper();
921 } 926 }
922 927
923 ensureRareData().m_inlineBoxWrapper = boxWrapper; 928 ensureRareData().m_inlineBoxWrapper = boxWrapper;
924 } 929 }
925 930
926 } // namespace blink 931 } // namespace blink
927 932
928 #endif // LayoutBox_h 933 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutBox.cpp » ('j') | Source/core/layout/LayoutBox.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698