Changeset 19601 in webkit


Ignore:
Timestamp:
Feb 13, 2007 5:09:04 AM (17 years ago)
Author:
mjs
Message:

LayoutTests:

Reviewed by Hyatt.

  • fast/lists/item-not-in-list-line-wrapping-expected.checksum: Added.
  • fast/lists/item-not-in-list-line-wrapping-expected.png: Added.
  • fast/lists/item-not-in-list-line-wrapping-expected.txt: Added.
  • fast/lists/item-not-in-list-line-wrapping.html: Added.

WebCore:

Reviewed by Hyatt.

Test: fast/lists/item-not-in-list-line-wrapping.html

  • rendering/bidi.cpp: (WebCore::RenderBlock::findNextLineBreak): Use the list marker's isInside() instead of looking at its style()->listStylePosition(), since if the list item is not in a list, the marker is inside regardless of the style.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r19600 r19601  
     12007-02-13  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Hyatt.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=12746
     6        REGRESSION (r13853): List item's first line overflows containing div
     7
     8        * fast/lists/item-not-in-list-line-wrapping-expected.checksum: Added.
     9        * fast/lists/item-not-in-list-line-wrapping-expected.png: Added.
     10        * fast/lists/item-not-in-list-line-wrapping-expected.txt: Added.
     11        * fast/lists/item-not-in-list-line-wrapping.html: Added.
     12
    1132007-02-13  Rob Buis  <buis@kde.org>
    214
  • trunk/WebCore/ChangeLog

    r19600 r19601  
     12007-02-13  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Hyatt.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=12746
     6        REGRESSION (r13853): List item's first line overflows containing div
     7
     8        Test: fast/lists/item-not-in-list-line-wrapping.html
     9
     10        * rendering/bidi.cpp:
     11        (WebCore::RenderBlock::findNextLineBreak): Use the list marker's isInside()
     12        instead of looking at its style()->listStylePosition(), since if the
     13        list item is not in a list, the marker is inside regardless of the style.
     14
    1152007-02-13  Rob Buis  <buis@kde.org>
    216
  • trunk/WebCore/rendering/bidi.cpp

    r19569 r19601  
    3232#include "RenderArena.h"
    3333#include "RenderLayer.h"
     34#include "RenderListMarker.h"
    3435#include "RenderView.h"
    3536#include "break_lines.h"
     
    21922193            trailingSpaceObject = 0;
    21932194           
    2194             if (o->isListMarker() && o->style()->listStylePosition() == OUTSIDE) {
     2195            if (o->isListMarker() && !static_cast<RenderListMarker*>(o)->isInside()) {
    21952196                // The marker must not have an effect on whitespace at the start
    21962197                // of the line.  We start ignoring spaces to make sure that any additional
     
    25262527
    25272528        if (!last->isFloatingOrPositioned() && last->isReplaced() && autoWrap &&
    2528             (!last->isListMarker() || last->style()->listStylePosition()==INSIDE)) {
     2529            (!last->isListMarker() || static_cast<RenderListMarker*>(last)->isInside())) {
    25292530            // Go ahead and add in tmpW.
    25302531            w += tmpW;
Note: See TracChangeset for help on using the changeset viewer.