Reviewed by John Sullivan.
- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8587
<rdar://problem/
4631844>
REGRESSION: {display:list-item} on items outside an ol or ul element no longer causes incremental numbering
* fast/lists/numeric-markers-outside-list-expected.checksum: Added.
* fast/lists/numeric-markers-outside-list-expected.png: Added.
* fast/lists/numeric-markers-outside-list-expected.txt: Added.
* fast/lists/numeric-markers-outside-list.html: Added.
WebCore:
Reviewed by John Sullivan.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8587
<rdar://problem/
4631844>
REGRESSION: {display:list-item} on items outside an ol or ul element no longer causes incremental numbering
Test: fast/lists/numeric-markers-outside-list.html
* rendering/RenderListItem.cpp: (WebCore::previousListItem):
Look for list items, even when we're outside any list.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15458
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
-2006-07-16 Geoffrey Garen <ggaren@apple.com>
+2006-07-15 Darin Adler <darin@apple.com>
+
+ Reviewed by John Sullivan.
+
+ - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8587
+ <rdar://problem/4631844>
+ REGRESSION: {display:list-item} on items outside an ol or ul element no longer causes incremental numbering
+
+ * fast/lists/numeric-markers-outside-list-expected.checksum: Added.
+ * fast/lists/numeric-markers-outside-list-expected.png: Added.
+ * fast/lists/numeric-markers-outside-list-expected.txt: Added.
+ * fast/lists/numeric-markers-outside-list.html: Added.
+
+2006-07-15 Geoffrey Garen <ggaren@apple.com>
Reviewed by Maciej.
--- /dev/null
+aaf9a304e829cb57e0261c6640fbb73c
\ No newline at end of file
--- /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 {DIV} at (0,0) size 784x36
+ RenderListItem {DIV} at (30,0) size 754x18
+ RenderListMarker at (-20,0) size 16x18
+ RenderText {#text} at (0,0) size 150x18
+ text run at (0,0) width 150: "should have a label of 1"
+ RenderListItem {DIV} at (30,18) size 754x18
+ RenderListMarker at (-20,0) size 16x18
+ RenderText {#text} at (0,0) size 150x18
+ text run at (0,0) width 150: "should have a label of 2"
--- /dev/null
+<meta http-equiv="content-type" content="text/html; charset=utf-8">
+<div style="padding-left:30px">
+<div class="list" style="display: list-item; list-style-type: decimal">should have a label of 1</div>
+<div class="list" style="display: list-item; list-style-type: decimal">should have a label of 2</div>
+2006-07-15 Darin Adler <darin@apple.com>
+
+ Reviewed by John Sullivan.
+
+ - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8587
+ <rdar://problem/4631844>
+ REGRESSION: {display:list-item} on items outside an ol or ul element no longer causes incremental numbering
+
+ Test: fast/lists/numeric-markers-outside-list.html
+
+ * rendering/RenderListItem.cpp: (WebCore::previousListItem):
+ Look for list items, even when we're outside any list.
+
2006-07-15 Adele Peterson <adele@apple.com>
Reviewed by John.
static RenderListItem* previousListItem(Node* list, RenderListItem* item)
{
- if (!list)
- return 0;
for (Node* n = item->node()->traversePreviousNode(); n != list; n = n->traversePreviousNode()) {
RenderObject* o = n->renderer();
if (o && o->isListItem()) {