Changeset 139782 in webkit


Ignore:
Timestamp:
Jan 15, 2013 1:41:47 PM (11 years ago)
Author:
ojan@chromium.org
Message:

Moving updating of margins from computePreferredLogicalWidths to layout
https://bugs.webkit.org/show_bug.cgi?id=106939

Reviewed by Levi Weintraub.

The margins don't affect it's preferred width. We should update them
during layout like we do in other classes (e.g. RenderBlock).

  • rendering/RenderListMarker.cpp:

(WebCore::RenderListMarker::layout):
(WebCore::RenderListMarker::computePreferredLogicalWidths):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139780 r139782  
     12013-01-15  Ojan Vafai  <ojan@chromium.org>
     2
     3        Moving updating of margins from computePreferredLogicalWidths to layout
     4        https://bugs.webkit.org/show_bug.cgi?id=106939
     5
     6        Reviewed by Levi Weintraub.
     7
     8        The margins don't affect it's preferred width. We should update them
     9        during layout like we do in other classes (e.g. RenderBlock).
     10
     11        * rendering/RenderListMarker.cpp:
     12        (WebCore::RenderListMarker::layout):
     13        (WebCore::RenderListMarker::computePreferredLogicalWidths):
     14
    1152013-01-15  Adam Barth  <abarth@webkit.org>
    216
  • trunk/Source/WebCore/rendering/RenderListMarker.cpp

    r137169 r139782  
    13171317    StackStats::LayoutCheckPoint layoutCheckPoint;
    13181318    ASSERT(needsLayout());
     1319
     1320    updateMargins();
    13191321 
    13201322    if (isImage()) {
     
    13681370        m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = style()->isHorizontalWritingMode() ? imageSize.width() : imageSize.height();
    13691371        setPreferredLogicalWidthsDirty(false);
    1370         updateMargins();
    13711372        return;
    13721373    }
     
    14791480
    14801481    setPreferredLogicalWidthsDirty(false);
    1481    
    1482     updateMargins();
    14831482}
    14841483
Note: See TracChangeset for help on using the changeset viewer.