Changeset 123909 in webkit
- Timestamp:
- Jul 27, 2012 12:46:13 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r123904 r123909 1 2012-07-27 Tony Chang <tony@chromium.org> 2 3 flex-wrap: wrap not wrapping for % sized items in column flow 4 https://bugs.webkit.org/show_bug.cgi?id=92324 5 6 Reviewed by Ojan Vafai. 7 8 Test cases for column flow with percentage heights. There are three 9 test cases for the three callers of mainAxisContentExtent() that were 10 broken by this. 11 12 * css3/flexbox/percentage-heights-expected.txt: Added. 13 * css3/flexbox/percentage-heights.html: Added. 14 1 15 2012-07-27 Dan Bernstein <mitz@apple.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r123908 r123909 1 2012-07-27 Tony Chang <tony@chromium.org> 2 3 flex-wrap: wrap not wrapping for % sized items in column flow 4 https://bugs.webkit.org/show_bug.cgi?id=92324 5 6 Reviewed by Ojan Vafai. 7 8 We were using trying to use the value of contentLogicalHeight() before having called computeLogicalHeight() 9 in a few places. Fix this in mainAxisContentExtent() rather than at the callers. 10 11 Test: css3/flexbox/percentage-heights.html 12 13 * rendering/RenderFlexibleBox.cpp: 14 (WebCore::RenderFlexibleBox::mainAxisContentExtent): 15 (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): If we haven't called computeLogicalHeight, we try to compute 16 the height based on the fixed flexbox value. min/max don't matter here since percent values are only based on height/width. 17 * rendering/RenderFlexibleBox.h: Drop const because computeContentLogicalHeightUsing is not const. I can 18 try making computeContentLogicalHeightUsing const in a follow up change (might be non-trivial). 19 1 20 2012-07-27 Min Qin <qinmin@chromium.org> 2 21 … … 119 138 (WebCore::RootInlineBox::isFirstAfterPageBreak): Added this accessor. 120 139 (WebCore::RootInlineBox::setIsFirstAfterPageBreak): Ditto. 140 141 2012-07-27 John J. Barton <johnjbarton@johnjbarton.com> 142 143 Web Inspector: Allow front_end to be loaded into an iframe 144 https://bugs.webkit.org/show_bug.cgi?id=92437 145 146 Reviewed by Pavel Feldman. 147 148 This change only affects 'embedders' of the inspector/front_end. No change of function for WebKit ports. 149 150 * inspector/front-end/ExtensionAPI.js: 151 Replace window.top with window.parent two places. When WebInspector is loaded as the main window content, 152 then extension iframes have window.top === window.parent; when WebInspector is loaded as an iframe, then 153 extensions are iframes in iframes and we need to use a relative address window.parent. 154 (injectedExtensionAPI.ExtensionViewImpl.dispatchShowEvent): 155 (injectedExtensionAPI.ExtensionViewImpl): 156 (injectedExtensionAPI.ExtensionServerClient): 157 WebKit/chromium/scripts/generate_devtools_extension_api.py: 158 The current number of frames is used in a dynamically created identifier. Again we replace 'top' by 159 window.parent. 121 160 122 161 2012-07-27 John J. Barton <johnjbarton@johnjbarton.com> -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r123842 r123909 397 397 } 398 398 399 LayoutUnit RenderFlexibleBox::mainAxisContentExtent() const 400 { 401 return isHorizontalFlow() ? contentWidth() : contentHeight(); 399 LayoutUnit RenderFlexibleBox::mainAxisContentExtent() 400 { 401 if (isColumnFlow()) 402 return std::max(LayoutUnit(0), computeContentLogicalHeightUsing(MainOrPreferredSize, style()->logicalHeight())); 403 return contentLogicalWidth(); 402 404 } 403 405 … … 591 593 } 592 594 593 LayoutUnit RenderFlexibleBox::preferredMainAxisContentExtentForChild(RenderBox* child) const595 LayoutUnit RenderFlexibleBox::preferredMainAxisContentExtentForChild(RenderBox* child) 594 596 { 595 597 Length flexBasis = flexBasisForChild(child); -
trunk/Source/WebCore/rendering/RenderFlexibleBox.h
r123842 r123909 84 84 LayoutUnit mainAxisExtent() const; 85 85 LayoutUnit crossAxisContentExtent() const; 86 LayoutUnit mainAxisContentExtent() const;86 LayoutUnit mainAxisContentExtent(); 87 87 WritingMode transformedWritingMode() const; 88 88 LayoutUnit flowAwareBorderStart() const; … … 106 106 LayoutUnit mainAxisBorderAndPaddingExtentForChild(RenderBox* child) const; 107 107 LayoutUnit mainAxisScrollbarExtentForChild(RenderBox* child) const; 108 LayoutUnit preferredMainAxisContentExtentForChild(RenderBox* child) const;108 LayoutUnit preferredMainAxisContentExtentForChild(RenderBox* child); 109 109 110 110 void layoutFlexItems(OrderIterator&, WTF::Vector<LineContext>&); -
trunk/Source/WebKit2/ChangeLog
r123907 r123909 13 13 (WebKit::WebFrameLoaderClient::createJavaAppletWidget): 14 14 Get the MIME type from the applet element. 15 16 2012-07-27 Gyuyoung Kim <gyuyoung.kim@samsung.com> 17 18 [WK2] Fix build warning in WebEventConversion.cpp 19 https://bugs.webkit.org/show_bug.cgi?id=92517 20 21 Reviewed by Darin Adler. 22 23 There is a build warning related to comparison between signed and unsigned integer expressions. 24 25 * Shared/WebEventConversion.cpp: 26 (WebKit::WebKit2PlatformTouchEvent::WebKit2PlatformTouchEvent): 15 27 16 28 2012-07-27 Gyuyoung Kim <gyuyoung.kim@samsung.com>
Note: See TracChangeset
for help on using the changeset viewer.