LayoutTests:
Reviewed by Hyatt.
- test for <rdar://problem/
4701494> REGRESSION: Scrollbar on EPSN widget doesn't scroll (also affects Widgets widget, web inspector)
* fast/css/computed-style-negative-top-expected.txt: Added.
* fast/css/computed-style-negative-top.html: Added.
WebCore:
Reviewed by Hyatt.
- fix <rdar://problem/
4701494> REGRESSION: Scrollbar on EPSN widget doesn't scroll (also affects Widgets widget, web inspector)
The bug was that we would return "none" for computed style properties when they were
exactly "-1px".
Test: fast/css/computed-style-negative-top.html
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::valueForLength): Moved special case for "undefined length" out of here.
(WebCore::valueForMaxLength): Moved it into here.
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Use valueForMaxLength
only for max-height and max-width.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16108
268f45cc-cd09-0410-ab3c-
d52691b4dbfc