Changeset 201218 in webkit


Ignore:
Timestamp:
May 20, 2016 11:48:53 AM (8 years ago)
Author:
hyatt@apple.com
Message:

Scrolling broken in iTunes connect pages
https://bugs.webkit.org/show_bug.cgi?id=157678

Reviewed by Zalan Bujtas.

Source/WebCore:

Added fast/flexbox/nested-columns-min-intrinsic-disabled.html

Turn off minimum intrinsic size adjustment for flexboxes. This violates the spec,
but until we can produce good results that is what we need to do. Blink has also
turned off nested columns intrinsic sizing as well, so we match them with this
change.

  • rendering/RenderFlexibleBox.cpp:

(WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax):

LayoutTests:

  • fast/flexbox/nested-column-intrinsic-min-disabled-expected.html: Added.
  • fast/flexbox/nested-column-intrinsic-min-disabled.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r201216 r201218  
     12016-05-20  Dave Hyatt  <hyatt@apple.com>
     2
     3        Scrolling broken in iTunes connect pages
     4        https://bugs.webkit.org/show_bug.cgi?id=157678
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        * fast/flexbox/nested-column-intrinsic-min-disabled-expected.html: Added.
     9        * fast/flexbox/nested-column-intrinsic-min-disabled.html: Added.
     10
    1112016-05-20  Joanmarie Diggs  <jdiggs@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r201213 r201218  
     12016-05-20  Dave Hyatt  <hyatt@apple.com>
     2
     3        Scrolling broken in iTunes connect pages
     4        https://bugs.webkit.org/show_bug.cgi?id=157678
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Added fast/flexbox/nested-columns-min-intrinsic-disabled.html
     9
     10        Turn off minimum intrinsic size adjustment for flexboxes. This violates the spec,
     11        but until we can produce good results that is what we need to do. Blink has also
     12        turned off nested columns intrinsic sizing as well, so we match them with this
     13        change.
     14
     15        * rendering/RenderFlexibleBox.cpp:
     16        (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax):
     17
    1182016-05-20  Rawinder Singh  <rawinder.singh-webkit@cisra.canon.com.au>
    219
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r200041 r201218  
    869869        return std::max(childSize, computeMainAxisExtentForChild(child, MinSize, min).valueOr(childSize));
    870870
    871     if (!isFlexibleBoxImpl() && min.isAuto() && mainAxisOverflowForChild(child) == OVISIBLE) {
     871    if (!isFlexibleBoxImpl() && min.isAuto() && mainAxisOverflowForChild(child) == OVISIBLE && !(isColumnFlow() && is<RenderFlexibleBox>(child))) {
    872872        // This is the implementation of CSS flexbox section 4.5 which defines the minimum size of "pure" flex
    873873        // items. For any other item the value should be 0, this also includes RenderFlexibleBox's derived clases
    874874        // (RenderButton, RenderFullScreen...) because that's just an implementation detail.
     875        // FIXME: For now we don't handle nested column flexboxes. Need to implement better intrinsic
     876        // size handling from the flex box spec first (4.5).
    875877        LayoutUnit contentSize = computeMainAxisExtentForChild(child, MinSize, Length(MinContent)).value();
    876878        ASSERT(contentSize >= 0);
Note: See TracChangeset for help on using the changeset viewer.