2010-09-07 James Kozianski <koz@chromium.org>
Reviewed by Kent Tamura.
Adds tests for percent-based attributes on the <meter> element.
* fast/dom/HTMLMeterElement/meter-percent-size-expected.txt: Added.
* fast/dom/HTMLMeterElement/meter-percent-size.html: Added.
2010-09-07 James Kozianski <koz@chromium.org>
Reviewed by Kent Tamura.
Crash rendering <meter/> with percent padding
https://bugs.webkit.org/show_bug.cgi?id=45081
Avoids a crash caused by RenderMeter checking its own dimensions to
determine whether it needs layout. The crash is avoided by removing
the check and always calling setNeedsLayout(true).
Test: fast/dom/HTMLMeterElement/meter-percent-size.html
* rendering/RenderIndicator.cpp:
(WebCore::RenderIndicator::updateFromElement):
* rendering/RenderIndicator.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66864 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6 files changed