Reviewed by Darin Adler.
- fix <rdar://problem/
5134044> fast/frames/frame-src-attribute.html fails on Windows
* platform/win/ScrollViewWin.cpp:
(WebCore::ScrollView::visibleWidth): Do not return negative values.
(WebCore::ScrollView::visibleHeight): Ditto.
LayoutTests:
Reviewed by Darin Adler.
- remove passing test
* platform/win/Skipped:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28372
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-12-03 Dan Bernstein <mitz@apple.com>
+
+ Reviewed by Darin Adler.
+
+ - remove passing test
+
+ * platform/win/Skipped:
+
2007-12-03 Dan Bernstein <mitz@apple.com>
Reviewed by Dave Hyatt.
fast/events/option-tab.html
fast/forms/focus2.html
-# fast/frames/frame-src-attribute.html fails on boomer <rdar://problem/5134044>
-fast/frames/frame-src-attribute.html
-
# fast/html/keygen.html is failing on boomer <rdar://problem/5133799>
fast/html/keygen.html
fast/invalid/residual-style.html
+2007-12-03 Dan Bernstein <mitz@apple.com>
+
+ Reviewed by Darin Adler.
+
+ - fix <rdar://problem/5134044> fast/frames/frame-src-attribute.html fails on Windows
+
+ * platform/win/ScrollViewWin.cpp:
+ (WebCore::ScrollView::visibleWidth): Do not return negative values.
+ (WebCore::ScrollView::visibleHeight): Ditto.
+
2007-12-03 Dan Bernstein <mitz@apple.com>
Reviewed by Dave Hyatt.
int ScrollView::visibleWidth() const
{
- return width() - (m_data->m_vBar ? m_data->m_vBar->width() : 0);
+ return max(0, width() - (m_data->m_vBar ? m_data->m_vBar->width() : 0));
}
int ScrollView::visibleHeight() const
{
- return height() - (m_data->m_hBar ? m_data->m_hBar->height() : 0);
+ return max(0, height() - (m_data->m_hBar ? m_data->m_hBar->height() : 0));
}
FloatRect ScrollView::visibleContentRect() const