+2007-04-26 Mitz Pettel <mitz@webkit.org>
+
+ Reviewed by Darin.
+
+ - pixel test for http://bugs.webkit.org/show_bug.cgi?id=13500
+ REGRESSION: Listbox scrollbar does not reflect actual scrolled position when selected option is added after layout
+
+ * fast/forms/listbox-scrollbar-incremental-load-expected.checksum: Added.
+ * fast/forms/listbox-scrollbar-incremental-load-expected.png: Added.
+ * fast/forms/listbox-scrollbar-incremental-load-expected.txt: Added.
+ * fast/forms/listbox-scrollbar-incremental-load.html: Added.
+
2007-04-26 Justin Garcia <justin.garcia@apple.com>
Reviewed by oliver
--- /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 767x36
+ 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=13500"
+ RenderText {#text} at (354,0) size 767x36
+ text run at (354,0) width 4: " "
+ text run at (358,0) width 409: "REGRESSION: Listbox scrollbar does not reflect actual scrolled"
+ text run at (0,18) width 319: "position when selected option is added after layout"
+ RenderText {#text} at (319,18) size 4x18
+ text run at (319,18) width 4: "."
+ RenderBlock {P} at (0,52) size 784x36
+ RenderText {#text} at (0,0) size 780x36
+ text run at (0,0) width 493: "The list box should be scrolled all the way down, showing the selected option "
+ text run at (493,0) width 287: "\x{201C}Seven\x{201D}. The scroller should be at the bottom"
+ text run at (0,18) width 102: "of the scroll bar "
+ text run at (102,18) width 85: "to reflect this."
+ RenderBlock (anonymous) at (0,104) size 784x61
+ RenderListBox {SELECT} at (2,2) size 48x57 [bgcolor=#FFFFFF] [border: (1px inset #808080)]
+ RenderText {#text} at (0,0) size 0x0
--- /dev/null
+<p>
+ Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=13500">http://bugs.webkit.org/show_bug.cgi?id=13500</a>
+ REGRESSION: Listbox scrollbar does not reflect actual scrolled position when selected option is added after layout</i>.
+</p>
+<p>
+ The list box should be scrolled all the way down, showing the selected option
+ “Seven”. The scroller should be at the bottom of the scroll bar
+ to reflect this.
+</p>
+<select size="4">
+ <option>One</option>
+ <option>Two</option>
+ <option>Three</option>
+ <option>Four</option>
+ <script>
+ document.body.offsetTop;
+ </script>
+ <option>Five</option>
+ <option>Six</option>
+ <option selected>Seven</option>
+</select>
+2007-04-26 Mitz Pettel <mitz@webkit.org>
+
+ Reviewed by Darin.
+
+ - fix http://bugs.webkit.org/show_bug.cgi?id=13500
+ REGRESSION: Listbox scrollbar does not reflect actual scrolled position when selected option is added after layout
+
+ Test: fast/forms/listbox-scrollbar-incremental-load.html
+
+ The scroller position was not updated correctly during insertion, since
+ scrollbar proportions are updated only during layout
+
+ * rendering/RenderListBox.cpp:
+ (WebCore::RenderListBox::selectionChanged): Delay scrolling to reveal the
+ selection until after layout if m_optionsChanged is set. Layout is
+ guaranteed to happen soon when the flag is set.
+
2007-04-26 David Hyatt <hyatt@apple.com>
Fix for 13511, crash on a counters page. Make sure that RenderTexts