Changeset 123909 in webkit


Ignore:
Timestamp:
Jul 27, 2012 12:46:13 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Source/WebCore: flex-wrap: wrap not wrapping for % sized items in column flow
https://bugs.webkit.org/show_bug.cgi?id=92324

Patch by Tony Chang <tony@chromium.org> on 2012-07-27
Reviewed by Ojan Vafai.

We were using trying to use the value of contentLogicalHeight() before having called computeLogicalHeight()
in a few places. Fix this in mainAxisContentExtent() rather than at the callers.

Test: css3/flexbox/percentage-heights.html

  • rendering/RenderFlexibleBox.cpp:

(WebCore::RenderFlexibleBox::mainAxisContentExtent):
(WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): If we haven't called computeLogicalHeight, we try to compute
the height based on the fixed flexbox value. min/max don't matter here since percent values are only based on height/width.

  • rendering/RenderFlexibleBox.h: Drop const because computeContentLogicalHeightUsing is not const. I can

try making computeContentLogicalHeightUsing const in a follow up change (might be non-trivial).

Source/WebKit2: Show the unavailable plug-in indicator for Java applets as well
https://bugs.webkit.org/show_bug.cgi?id=92521

Patch by Anders Carlsson <andersca@apple.com> on 2012-07-27
Reviewed by Sam Weinig.

  • WebProcess/WebCoreSupport/WebChromeClient.cpp:

(WebKit::WebChromeClient::unavailablePluginButtonClicked):
This can now be called on applet elements as well.

  • WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:

(WebKit::WebFrameLoaderClient::createJavaAppletWidget):
Get the MIME type from the applet element.

LayoutTests: flex-wrap: wrap not wrapping for % sized items in column flow
https://bugs.webkit.org/show_bug.cgi?id=92324

Patch by Tony Chang <tony@chromium.org> on 2012-07-27
Reviewed by Ojan Vafai.

Test cases for column flow with percentage heights. There are three
test cases for the three callers of mainAxisContentExtent() that were
broken by this.

  • css3/flexbox/percentage-heights-expected.txt: Added.
  • css3/flexbox/percentage-heights.html: Added.
Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r123904 r123909  
     12012-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
    1152012-07-27  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/Source/WebCore/ChangeLog

    r123908 r123909  
     12012-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
    1202012-07-27  Min Qin  <qinmin@chromium.org>
    221
     
    119138        (WebCore::RootInlineBox::isFirstAfterPageBreak): Added this accessor.
    120139        (WebCore::RootInlineBox::setIsFirstAfterPageBreak): Ditto.
     140
     1412012-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.
    121160
    1221612012-07-27  John J. Barton  <johnjbarton@johnjbarton.com>
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r123842 r123909  
    397397}
    398398
    399 LayoutUnit RenderFlexibleBox::mainAxisContentExtent() const
    400 {
    401     return isHorizontalFlow() ? contentWidth() : contentHeight();
     399LayoutUnit RenderFlexibleBox::mainAxisContentExtent()
     400{
     401    if (isColumnFlow())
     402        return std::max(LayoutUnit(0), computeContentLogicalHeightUsing(MainOrPreferredSize, style()->logicalHeight()));
     403    return contentLogicalWidth();
    402404}
    403405
     
    591593}
    592594
    593 LayoutUnit RenderFlexibleBox::preferredMainAxisContentExtentForChild(RenderBox* child) const
     595LayoutUnit RenderFlexibleBox::preferredMainAxisContentExtentForChild(RenderBox* child)
    594596{
    595597    Length flexBasis = flexBasisForChild(child);
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.h

    r123842 r123909  
    8484    LayoutUnit mainAxisExtent() const;
    8585    LayoutUnit crossAxisContentExtent() const;
    86     LayoutUnit mainAxisContentExtent() const;
     86    LayoutUnit mainAxisContentExtent();
    8787    WritingMode transformedWritingMode() const;
    8888    LayoutUnit flowAwareBorderStart() const;
     
    106106    LayoutUnit mainAxisBorderAndPaddingExtentForChild(RenderBox* child) const;
    107107    LayoutUnit mainAxisScrollbarExtentForChild(RenderBox* child) const;
    108     LayoutUnit preferredMainAxisContentExtentForChild(RenderBox* child) const;
     108    LayoutUnit preferredMainAxisContentExtentForChild(RenderBox* child);
    109109
    110110    void layoutFlexItems(OrderIterator&, WTF::Vector<LineContext>&);
  • trunk/Source/WebKit2/ChangeLog

    r123907 r123909  
    1313        (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
    1414        Get the MIME type from the applet element.
     15
     162012-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):
    1527
    16282012-07-27  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
Note: See TracChangeset for help on using the changeset viewer.