| Differences between
and this patch
- a/Source/WebCore/ChangeLog +14 lines
Lines 1-3 a/Source/WebCore/ChangeLog_sec1
1
2012-02-14  Ojan Vafai  <ojan@chromium.org>
2
3
        implement display: -webkit-inline-flexbox
4
        https://bugs.webkit.org/show_bug.cgi?id=77772
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        Tests: css3/flexbox/inline-flexbox-expected.html
9
               css3/flexbox/inline-flexbox.html
10
11
        * rendering/style/RenderStyle.h:
12
        -Add INLINE_FLEXBOX to the list of replaced display types.
13
        -Restructure the isDisplayInline methods to avoid code duplication.
14
1
2012-02-13  Ojan Vafai  <ojan@chromium.org>
15
2012-02-13  Ojan Vafai  <ojan@chromium.org>
2
16
3
        rtl + flex-direction:column is positioning elements incorrectly
17
        rtl + flex-direction:column is positioning elements incorrectly
- a/Source/WebCore/rendering/style/RenderStyle.h -13 / +6 lines
Lines 1435-1455 public: a/Source/WebCore/rendering/style/RenderStyle.h_sec1
1435
1435
1436
    StyleDifference diff(const RenderStyle*, unsigned& changedContextSensitiveProperties) const;
1436
    StyleDifference diff(const RenderStyle*, unsigned& changedContextSensitiveProperties) const;
1437
1437
1438
    bool isDisplayReplacedType() const
1438
    bool isDisplayReplacedType(EDisplay display) const
1439
    {
1439
    {
1440
        return display() == INLINE_BLOCK || display() == INLINE_BOX || display() == INLINE_TABLE;
1440
        return display == INLINE_BLOCK || display == INLINE_BOX || display == INLINE_FLEXBOX || display == INLINE_TABLE;
1441
    }
1442
1443
    bool isDisplayInlineType() const
1444
    {
1445
        return display() == INLINE || isDisplayReplacedType();
1446
    }
1447
1448
    bool isOriginalDisplayInlineType() const
1449
    {
1450
        return originalDisplay() == INLINE || originalDisplay() == INLINE_BLOCK
1451
            || originalDisplay() == INLINE_BOX || originalDisplay() == INLINE_TABLE;
1452
    }
1441
    }
1442
    bool isDisplayReplacedType() const { return isDisplayReplacedType(display()); }
1443
    bool isDisplayInlineType(EDisplay display) const { return display == INLINE || isDisplayReplacedType(display); }
1444
    bool isDisplayInlineType() const { return isDisplayInlineType(display()); }
1445
    bool isOriginalDisplayInlineType() const { return isDisplayInlineType(originalDisplay()); }
1453
1446
1454
    void setWritingMode(WritingMode v) { inherited_flags.m_writingMode = v; }
1447
    void setWritingMode(WritingMode v) { inherited_flags.m_writingMode = v; }
1455
1448
- a/LayoutTests/ChangeLog +10 lines
Lines 1-3 a/LayoutTests/ChangeLog_sec1
1
2012-02-14  Ojan Vafai  <ojan@chromium.org>
2
3
        implement display: -webkit-inline-flexbox
4
        https://bugs.webkit.org/show_bug.cgi?id=77772
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * css3/flexbox/inline-flexbox-expected.html: Added.
9
        * css3/flexbox/inline-flexbox.html: Added.
10
1
2012-02-13  Ojan Vafai  <ojan@chromium.org>
11
2012-02-13  Ojan Vafai  <ojan@chromium.org>
2
12
3
        rtl + flex-direction:column is positioning elements incorrectly
13
        rtl + flex-direction:column is positioning elements incorrectly
- a/LayoutTests/css3/flexbox/inline-flexbox-expected.html +4 lines
Line 0 a/LayoutTests/css3/flexbox/inline-flexbox-expected.html_sec1
1
<!DOCTYPE html>
2
<span>foo</span>
3
<span>flex item 1</span><span>flex item 2</span>
4
<span>baz</span>
- a/LayoutTests/css3/flexbox/inline-flexbox.html +7 lines
Line 0 a/LayoutTests/css3/flexbox/inline-flexbox.html_sec1
1
<!DOCTYPE html>
2
<span>foo</span>
3
<div style="display:-webkit-inline-flexbox">
4
    <div>flex item 1</div>
5
    <div>flex item 2</div>
6
</div>
7
<span>baz</span>

Return to Bug 77772