Changeset 143479 in webkit
- Timestamp:
- Feb 20, 2013, 10:45:22 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r143476 r143479 1 2013-02-20 Ojan Vafai <ojan@chromium.org> 2 3 Remove stretchesToMinIntrinsicLogicalWidth 4 https://bugs.webkit.org/show_bug.cgi?id=110266 5 6 Reviewed by Emil Eklund. 7 8 This was only used by fieldsets and now we have a way to express this 9 concept in CSS. 10 11 * WebCore.order: 12 * css/html.css: 13 Make fieldsets min-width: -webkit-min-content. 14 15 * rendering/RenderBox.cpp: 16 (WebCore::RenderBox::computeLogicalWidthInRegion): 17 (WebCore::RenderBox::computePositionedLogicalWidth): 18 * rendering/RenderBox.h: 19 Remove all calls to stretchesToMinIntrinsicLogicalWidth. 20 1 21 2013-02-20 Ojan Vafai <ojan@chromium.org> 2 22 -
trunk/Source/WebCore/WebCore.order
r143398 r143479 1655 1655 __ZNK7WebCore20RenderBoxModelObject12paddingStartEb 1656 1656 __ZNK7WebCore20RenderBoxModelObject10paddingEndEb 1657 __ZNK7WebCore9RenderBox35stretchesToMinIntrinsicLogicalWidthEv1658 1657 __ZNK7WebCore9RenderBox11marginStartEv 1659 1658 __ZNK7WebCore9RenderBox9marginEndEv … … 6817 6816 __ZN7WebCoreL17legendConstructorERKNS_13QualifiedNameEPNS_8DocumentEPNS_15HTMLFormElementEb 6818 6817 __ZN7WebCore17HTMLLegendElement6createERKNS_13QualifiedNameEPNS_8DocumentEPNS_15HTMLFormElementE 6819 __ZNK7WebCore14RenderFieldset35stretchesToMinIntrinsicLogicalWidthEv6820 6818 __ZN7WebCore14RenderFieldset29computePreferredLogicalWidthsEv 6821 6819 __ZN7WebCore11RenderBlock34computeBlockPreferredLogicalWidthsEv -
trunk/Source/WebCore/css/html.css
r142076 r143479 394 394 -webkit-padding-end: 0.75em; 395 395 -webkit-padding-after: 0.625em; 396 border: 2px groove ThreeDFace 396 border: 2px groove ThreeDFace; 397 min-width: -webkit-min-content; 397 398 } 398 399 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r143476 r143479 2008 2008 computedValues.m_extent = constrainLogicalWidthInRegionByMinMax(preferredWidth, containerWidthInInlineDirection, cb, region, offsetFromLogicalTopOfFirstPage); 2009 2009 } 2010 2011 // Fieldsets are currently the only objects that stretch to their minimum width.2012 if (stretchesToMinIntrinsicLogicalWidth())2013 computedValues.m_extent = max(computedValues.m_extent, minPreferredLogicalWidth());2014 2010 2015 2011 // Margin calculations. … … 3025 3021 computedValues.m_margins.m_end = minValues.m_margins.m_end; 3026 3022 } 3027 }3028 3029 if (stretchesToMinIntrinsicLogicalWidth() && computedValues.m_extent < minPreferredLogicalWidth() - bordersPlusPadding) {3030 computePositionedLogicalWidthUsing(MainOrPreferredSize, Length(minPreferredLogicalWidth() - bordersPlusPadding, Fixed), containerBlock, containerDirection,3031 containerLogicalWidth, bordersPlusPadding,3032 logicalLeftLength, logicalRightLength, marginLogicalLeft, marginLogicalRight,3033 computedValues);3034 3023 } 3035 3024 -
trunk/Source/WebCore/rendering/RenderBox.h
r143476 r143479 412 412 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and floating/compact elements do this. 413 413 bool sizesLogicalWidthToFitContent(SizeType) const; 414 virtual bool stretchesToMinIntrinsicLogicalWidth() const { return false; }415 414 416 415 LayoutUnit shrinkLogicalWidthToAvoidFloats(LayoutUnit childMarginStart, LayoutUnit childMarginEnd, const RenderBlock* cb, RenderRegion*, LayoutUnit offsetFromLogicalTopOfFirstPage) const; -
trunk/Source/WebCore/rendering/RenderFieldset.cpp
r140244 r143479 213 213 } 214 214 215 bool RenderFieldset::stretchesToMinIntrinsicLogicalWidth() const216 {217 // If width is explicitly specified then Fieldsets should not stretch218 if (style()->width().isPercent())219 return false;220 221 return true;222 }223 224 215 } // namespace WebCore -
trunk/Source/WebCore/rendering/RenderFieldset.h
r140640 r143479 44 44 virtual void computePreferredLogicalWidths(); 45 45 virtual bool avoidsFloats() const { return true; } 46 virtual bool stretchesToMinIntrinsicLogicalWidth() const OVERRIDE;47 46 48 47 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&);
Note:
See TracChangeset
for help on using the changeset viewer.