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

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

Issue 346603007: Remove position: sticky (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« 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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth) const; 698 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth) const;
699 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth, LayoutUnit & marginStart, LayoutUnit& marginEnd) const; 699 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth, LayoutUnit & marginStart, LayoutUnit& marginEnd) const;
700 700
701 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const; 701 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const;
702 702
703 // This function calculates the minimum and maximum preferred widths for an object. 703 // This function calculates the minimum and maximum preferred widths for an object.
704 // These values are used in shrink-to-fit layout systems. 704 // These values are used in shrink-to-fit layout systems.
705 // These include tables, positioned objects, floats and flexible boxes. 705 // These include tables, positioned objects, floats and flexible boxes.
706 virtual void computePreferredLogicalWidths() { clearPreferredLogicalWidthsDi rty(); } 706 virtual void computePreferredLogicalWidths() { clearPreferredLogicalWidthsDi rty(); }
707 707
708 virtual LayoutRect frameRectForStickyPositioning() const OVERRIDE FINAL { re turn frameRect(); }
709
710 RenderBoxRareData& ensureRareData() 708 RenderBoxRareData& ensureRareData()
711 { 709 {
712 if (!m_rareData) 710 if (!m_rareData)
713 m_rareData = adoptPtr(new RenderBoxRareData()); 711 m_rareData = adoptPtr(new RenderBoxRareData());
714 return *m_rareData.get(); 712 return *m_rareData.get();
715 } 713 }
716 714
717 private: 715 private:
718 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent). 716 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent).
719 LayoutRect m_frameRect; 717 LayoutRect m_frameRect;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 if (UNLIKELY(inlineBoxWrapper() != 0)) 775 if (UNLIKELY(inlineBoxWrapper() != 0))
778 deleteLineBoxWrapper(); 776 deleteLineBoxWrapper();
779 } 777 }
780 778
781 ensureRareData().m_inlineBoxWrapper = boxWrapper; 779 ensureRareData().m_inlineBoxWrapper = boxWrapper;
782 } 780 }
783 781
784 } // namespace WebCore 782 } // namespace WebCore
785 783
786 #endif // RenderBox_h 784 #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