Changeset 169195 in webkit


Ignore:
Timestamp:
May 22, 2014 4:54:24 AM (10 years ago)
Author:
Manuel Rego Casasnovas
Message:

[CSS Grid Layout] Guard RenderObject::isRenderGrid() method
https://bugs.webkit.org/show_bug.cgi?id=132380

Reviewed by Benjamin Poulain.

Guard RenderObject::isRenderGrid() method under ENABLE_CSS_GRID_LAYOUT compilation flag.

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::computeLogicalWidthInRegion):

  • rendering/RenderObject.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r169189 r169195  
     12014-05-22  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [CSS Grid Layout] Guard RenderObject::isRenderGrid() method
     4        https://bugs.webkit.org/show_bug.cgi?id=132380
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Guard RenderObject::isRenderGrid() method under ENABLE_CSS_GRID_LAYOUT compilation flag.
     9
     10        * rendering/RenderBox.cpp:
     11        (WebCore::RenderBox::computeLogicalWidthInRegion):
     12        * rendering/RenderObject.h:
     13
    1142014-05-21  Antti Koivisto  <antti@apple.com>
    215
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r169160 r169195  
    23072307   
    23082308    if (!hasPerpendicularContainingBlock && containerLogicalWidth && containerLogicalWidth != (computedValues.m_extent + computedValues.m_margins.m_start + computedValues.m_margins.m_end)
    2309         && !isFloating() && !isInline() && !cb->isFlexibleBoxIncludingDeprecated() && !cb->isRenderGrid()) {
     2309        && !isFloating() && !isInline() && !cb->isFlexibleBoxIncludingDeprecated()
     2310#if ENABLE(CSS_GRID_LAYOUT)
     2311        && !cb->isRenderGrid()
     2312#endif
     2313        ) {
    23102314        LayoutUnit newMargin = containerLogicalWidth - computedValues.m_extent - cb->marginStartForChild(*this);
    23112315        bool hasInvertedDirection = cb->style().isLeftToRightDirection() != style().isLeftToRightDirection();
  • trunk/Source/WebCore/rendering/RenderObject.h

    r169024 r169195  
    355355    virtual bool isRenderFullScreenPlaceholder() const { return false; }
    356356#endif
    357 
     357#if ENABLE(CSS_GRID_LAYOUT)
    358358    virtual bool isRenderGrid() const { return false; }
    359 
     359#endif
    360360    virtual bool isRenderFlowThread() const { return false; }
    361361    virtual bool isRenderNamedFlowThread() const { return false; }
Note: See TracChangeset for help on using the changeset viewer.