https://bugs.webkit.org/show_bug.cgi?id=80614
Reviewed by Beth Dakin.
Source/WebCore:
Test: fast/css/dashboard-regions-undefined-length-assertion.html
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::collectMatchingRulesForList): Reverted to setting zero lengths,
rather than Undefined ones, in the RenderStyle when offsets are not given.
LayoutTests:
* fast/css/dashboard-regions-undefined-length-assertion-expected.txt: Added.
* fast/css/dashboard-regions-undefined-length-assertion.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110180
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-03-08 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r109964): Assertion failure (!isUndefined()) in Length::getIntValue() when a Dashboard region is specified without offsets
+ https://bugs.webkit.org/show_bug.cgi?id=80614
+
+ Reviewed by Beth Dakin.
+
+ * fast/css/dashboard-regions-undefined-length-assertion-expected.txt: Added.
+ * fast/css/dashboard-regions-undefined-length-assertion.html: Added.
+
2012-03-08 Stephen White <senorblanco@chromium.org>
[chromium] Unreviewed gardening.
--- /dev/null
+The test passes if it does not cause an assertion failure.
--- /dev/null
+<script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+</script>
+<div style="-webkit-dashboard-region: dashboard-region(control rectangle)"></div>
+<p>The test passes if it does not cause an assertion failure.</p>
+2012-03-08 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r109964): Assertion failure (!isUndefined()) in Length::getIntValue() when a Dashboard region is specified without offsets
+ https://bugs.webkit.org/show_bug.cgi?id=80614
+
+ Reviewed by Beth Dakin.
+
+ Test: fast/css/dashboard-regions-undefined-length-assertion.html
+
+ * css/CSSStyleSelector.cpp:
+ (WebCore::CSSStyleSelector::collectMatchingRulesForList): Reverted to setting zero lengths,
+ rather than Undefined ones, in the RenderStyle when offsets are not given.
+
2012-03-08 Mikkel Kruse Johnsen <mikkel@linet.dk>
WebKitGtk+ fails to build on win32 against GTK3
Length right = convertToIntLength(region->right(), style(), m_rootElementStyle);
Length bottom = convertToIntLength(region->bottom(), style(), m_rootElementStyle);
Length left = convertToIntLength(region->left(), style(), m_rootElementStyle);
+
+ if (top.isUndefined())
+ top = Length();
+ if (right.isUndefined())
+ right = Length();
+ if (bottom.isUndefined())
+ bottom = Length();
+ if (left.isUndefined())
+ left = Length();
+
if (region->m_isCircle)
m_style->setDashboardRegion(StyleDashboardRegion::Circle, region->m_label, top, right, bottom, left, region == first ? false : true);
else if (region->m_isRectangle)