+2007-02-13 Mitz Pettel <mitz@webkit.org>
+
+ Reviewed by Hyatt.
+
+ - test for http://bugs.webkit.org/show_bug.cgi?id=12746
+ REGRESSION (r13853): List item's first line overflows containing div
+
+ * 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.
+
2007-02-13 Rob Buis <buis@kde.org>
Reviewed by Maciej.
--- /dev/null
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (8,8) size 784x584
+ RenderBlock {P} at (0,0) size 784x36
+ RenderText {#text} at (0,0) size 53x18
+ text run at (0,0) width 53: "Test for "
+ RenderInline {I} at (0,0) size 777x36
+ RenderInline {A} at (0,0) size 301x18 [color=#0000EE]
+ RenderText {#text} at (53,0) size 301x18
+ text run at (53,0) width 301: "http://bugs.webkit.org/show_bug.cgi?id=12746"
+ RenderText {#text} at (354,0) size 777x36
+ text run at (354,0) width 4: " "
+ text run at (358,0) width 419: "REGRESSION (r13853): List item's first line overflows containing"
+ text run at (0,18) width 19: "div"
+ RenderText {#text} at (19,18) size 4x18
+ text run at (19,18) width 4: "."
+ RenderBlock {P} at (0,52) size 784x18
+ RenderText {#text} at (0,0) size 262x18
+ text run at (0,0) width 262: "Text should not overflow the yellow box."
+ RenderBlock {DIV} at (0,86) size 125x36 [bgcolor=#FFFF00]
+ RenderListItem {LI} at (0,0) size 125x36
+ RenderListMarker at (-1,0) size 7x18: bullet
+ RenderText {#text} at (14,0) size 102x36
+ text run at (14,0) width 4: " "
+ text run at (18,0) width 84: "Lorem ipsum"
+ text run at (0,18) width 85: "dolor sit amet"
+2007-02-13 Mitz Pettel <mitz@webkit.org>
+
+ Reviewed by Hyatt.
+
+ - fix http://bugs.webkit.org/show_bug.cgi?id=12746
+ REGRESSION (r13853): List item's first line overflows containing div
+
+ 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.
+
2007-02-13 Rob Buis <buis@kde.org>
Reviewed by Maciej.
#include "InlineTextBox.h"
#include "RenderArena.h"
#include "RenderLayer.h"
+#include "RenderListMarker.h"
#include "RenderView.h"
#include "break_lines.h"
#include <wtf/AlwaysInline.h>
currentCharacterIsWS = false;
trailingSpaceObject = 0;
- if (o->isListMarker() && o->style()->listStylePosition() == OUTSIDE) {
+ if (o->isListMarker() && !static_cast<RenderListMarker*>(o)->isInside()) {
// The marker must not have an effect on whitespace at the start
// of the line. We start ignoring spaces to make sure that any additional
// spaces we see will be discarded.
o = next;
if (!last->isFloatingOrPositioned() && last->isReplaced() && autoWrap &&
- (!last->isListMarker() || last->style()->listStylePosition()==INSIDE)) {
+ (!last->isListMarker() || static_cast<RenderListMarker*>(last)->isInside())) {
// Go ahead and add in tmpW.
w += tmpW;
tmpW = 0;