Changeset 29553 in webkit


Ignore:
Timestamp:
Jan 16, 2008 10:20:16 PM (16 years ago)
Author:
hyatt@apple.com
Message:

WebCore:

Fix for http://bugs.webkit.org/show_bug.cgi?id=16611

Make sure vertical-align length values are offset from their parents rather than being absolute to the
line.

Reviewed by olliej

Added fast/css/vertical-align-lengths.html

  • rendering/RenderObject.cpp: (WebCore::RenderObject::getVerticalPosition):

LayoutTests:

Fix for http://bugs.webkit.org/show_bug.cgi?id=16611

Reviewed by olliej

  • ChangeLog:
  • fast/css/vertical-align-lengths.html: Added.
  • platform/mac/fast/css/vertical-align-lengths-expected.checksum: Added.
  • platform/mac/fast/css/vertical-align-lengths-expected.png: Added.
  • platform/mac/fast/css/vertical-align-lengths-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r29552 r29553  
     12008-01-16  David Hyatt  <hyatt@apple.com>
     2
     3       Fix for http://bugs.webkit.org/show_bug.cgi?id=16611
     4
     5       Reviewed by olliej
     6
     7        * ChangeLog:
     8        * fast/css/vertical-align-lengths.html: Added.
     9        * platform/mac/fast/css/vertical-align-lengths-expected.checksum: Added.
     10        * platform/mac/fast/css/vertical-align-lengths-expected.png: Added.
     11        * platform/mac/fast/css/vertical-align-lengths-expected.txt: Added.
     12
    1132008-01-16  Dan Bernstein  <mitz@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r29552 r29553  
     12008-01-16  David Hyatt  <hyatt@apple.com>
     2
     3        Fix for http://bugs.webkit.org/show_bug.cgi?id=16611
     4
     5        Make sure vertical-align length values are offset from their parents rather than being absolute to the
     6        line.
     7
     8        Reviewed by olliej
     9
     10        Added fast/css/vertical-align-lengths.html
     11
     12        * rendering/RenderObject.cpp:
     13        (WebCore::RenderObject::getVerticalPosition):
     14
    1152008-01-16  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/WebCore/rendering/RenderObject.cpp

    r29457 r29553  
    26882688    else if (va == BOTTOM)
    26892689        vpos = PositionBottom;
    2690     else if (va == LENGTH)
    2691         vpos = -style()->verticalAlignLength().calcValue(lineHeight(firstLine));
    26922690    else {
    26932691        bool checkParent = parent()->isInline() && !parent()->isInlineBlockOrInlineTable() && parent()->style()->verticalAlign() != TOP && parent()->style()->verticalAlign() != BOTTOM;
     
    27142712        } else if (va == BASELINE_MIDDLE)
    27152713            vpos += -lineHeight(firstLine) / 2 + baselinePosition(firstLine);
     2714        else if (va == LENGTH)
     2715            vpos -= style()->verticalAlignLength().calcValue(lineHeight(firstLine));
    27162716    }
    27172717
Note: See TracChangeset for help on using the changeset viewer.