Changeset 139693 in webkit


Ignore:
Timestamp:
Jan 14, 2013 5:19:14 PM (11 years ago)
Author:
ojan@chromium.org
Message:

RenderListItem does not need to override computePreferredLogicalWidth
https://bugs.webkit.org/show_bug.cgi?id=106839

Reviewed by Levi Weintraub.

Apparently there was a time when the list marker was considered part of
the list item's preferred width, but that is no longer the case.
This code was added in r3421. The code around preferred widths has change
a lot since then.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139692 r139693  
     12013-01-14  Ojan Vafai  <ojan@chromium.org>
     2
     3        RenderListItem does not need to override computePreferredLogicalWidth
     4        https://bugs.webkit.org/show_bug.cgi?id=106839
     5
     6        Reviewed by Levi Weintraub.
     7
     8        Apparently there was a time when the list marker was considered part of
     9        the list item's preferred width, but that is no longer the case.
     10        This code was added in r3421. The code around preferred widths has change
     11        a lot since then.
     12
     13        * rendering/RenderListItem.cpp:
     14        * rendering/RenderListItem.h:
     15
    1162013-01-14  Dima Gorbik  <dgorbik@apple.com>
    217
  • trunk/Source/WebCore/rendering/RenderListItem.cpp

    r137336 r139693  
    273273        }
    274274    }
    275 }
    276 
    277 void RenderListItem::computePreferredLogicalWidths()
    278 {
    279     ASSERT(preferredLogicalWidthsDirty());
    280    
    281     updateMarkerLocation();
    282 
    283     RenderBlock::computePreferredLogicalWidths();
    284275}
    285276
  • trunk/Source/WebCore/rendering/RenderListItem.h

    r126048 r139693  
    6666
    6767    virtual void layout();
    68     virtual void computePreferredLogicalWidths();
    6968
    7069    void positionListMarker();
Note: See TracChangeset for help on using the changeset viewer.