Changeset 3421 in webkit


Ignore:
Timestamp:
Jan 23, 2003, 11:42:10 AM (22 years ago)
Author:
hyatt
Message:

Fix for 3134613, bullets overlapping text on weather.com. Make
sure min/max widths get updated when the marker moves around.

Reviewed by john

  • khtml/rendering/render_list.cpp: (RenderListItem::updateMarkerLocation): (RenderListItem::calcMinMaxWidth): (RenderListItem::layout):
  • khtml/rendering/render_list.h:
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog-2003-10-25

    r3418 r3421  
     12003-01-23  David Hyatt  <hyatt@apple.com>
     2
     3        Fix for 3134613, bullets overlapping text on weather.com.  Make
     4        sure min/max widths get updated when the marker moves around.
     5       
     6        Reviewed by john
     7
     8        * khtml/rendering/render_list.cpp:
     9        (RenderListItem::updateMarkerLocation):
     10        (RenderListItem::calcMinMaxWidth):
     11        (RenderListItem::layout):
     12        * khtml/rendering/render_list.h:
     13
    114=== Safari-54 ===
    215
  • trunk/WebCore/ChangeLog-2005-08-23

    r3418 r3421  
     12003-01-23  David Hyatt  <hyatt@apple.com>
     2
     3        Fix for 3134613, bullets overlapping text on weather.com.  Make
     4        sure min/max widths get updated when the marker moves around.
     5       
     6        Reviewed by john
     7
     8        * khtml/rendering/render_list.cpp:
     9        (RenderListItem::updateMarkerLocation):
     10        (RenderListItem::calcMinMaxWidth):
     11        (RenderListItem::layout):
     12        * khtml/rendering/render_list.h:
     13
    114=== Safari-54 ===
    215
  • trunk/WebCore/khtml/rendering/render_list.cpp

    r3376 r3421  
    214214}
    215215
    216 void RenderListItem::layout( )
    217 {
    218     KHTMLAssert( !layouted() );
    219     KHTMLAssert( minMaxKnown() );
    220 
    221     if ( !checkChildren() ) {
    222         m_height = 0;
    223         //kdDebug(0) << "empty item" << endl;
    224         return;
    225     }
    226    
     216void RenderListItem::updateMarkerLocation()
     217{
    227218    // Sanity check the location of our marker.
    228219    if (m_marker) {
     
    238229                lineBoxParent = this;
    239230            lineBoxParent->addChild(m_marker, lineBoxParent->firstChild());
    240         }
     231            if (!m_marker->minMaxKnown())
     232                m_marker->calcMinMaxWidth();
     233            recalcMinMaxWidths();
     234        }
     235    }
     236}
     237
     238void RenderListItem::calcMinMaxWidth()
     239{
     240    // Make sure our marker is in the correct location.
     241    updateMarkerLocation();
     242    if (!minMaxKnown())
     243        RenderFlow::calcMinMaxWidth();
     244}
     245
     246void RenderListItem::layout( )
     247{
     248    KHTMLAssert( !layouted() );
     249    KHTMLAssert( minMaxKnown() );
     250
     251    if ( !checkChildren() ) {
     252        m_height = 0;
     253        //kdDebug(0) << "empty item" << endl;
     254        return;
    241255    }
    242256   
     257    updateMarkerLocation();   
    243258    RenderFlow::layout();
    244259}
  • trunk/WebCore/khtml/rendering/render_list.h

    r3376 r3421  
    102102
    103103    virtual void layout( );
     104    virtual void calcMinMaxWidth();
     105   
     106    void updateMarkerLocation();
    104107   
    105108    void setNotInList(bool notInList) { _notInList = notInList; }
Note: See TracChangeset for help on using the changeset viewer.