https://bugs.webkit.org/show_bug.cgi?id=82152
Reviewed by Ojan Vafai.
Source/WebCore:
Tests: css3/calc/vertical-align-expected.html
css3/calc/vertical-align.html
* css/CSSStyleApplyProperty.cpp:
(WebCore::ApplyPropertyVerticalAlign::applyValue):
LayoutTests:
* css3/calc/vertical-align-expected.html: Added.
* css3/calc/vertical-align.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112125
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-03-26 Mike Lawther <mikelawther@chromium.org>
+
+ CSS3 calc: mixed percent/absolute support for vertical-align
+ https://bugs.webkit.org/show_bug.cgi?id=82152
+
+ Reviewed by Ojan Vafai.
+
+ * css3/calc/vertical-align-expected.html: Added.
+ * css3/calc/vertical-align.html: Added.
+
2012-03-26 Stephen Chenney <schenney@chromium.org>
Failure to invalidate text position attributes when DOM changes
--- /dev/null
+<!DOCTYPE HTML>
+<style>
+.aligntest {
+ line-height: 16px;
+ vertical-align: -webkit-calc(9px);
+}
+</style>
+<hr/>
+<span class="aligntest">The first four words</span> in this sentence should have a line-height of 16px; they are also (25%+5px)-aligned, which should raise them 9px relative to the natural baseline.
+<hr/>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE HTML>
+<style>
+.aligntest {
+ line-height: 16px;
+ vertical-align: -webkit-calc(25% + 5px);
+}
+</style>
+<hr/>
+<span class="aligntest">The first four words</span> in this sentence should have a line-height of 16px; they are also (25%+5px)-aligned, which should raise them 9px relative to the natural baseline.
+<hr/>
\ No newline at end of file
+2012-03-26 Mike Lawther <mikelawther@chromium.org>
+
+ CSS3 calc: mixed percent/absolute support for vertical-align
+ https://bugs.webkit.org/show_bug.cgi?id=82152
+
+ Reviewed by Ojan Vafai.
+
+ Tests: css3/calc/vertical-align-expected.html
+ css3/calc/vertical-align.html
+
+ * css/CSSStyleApplyProperty.cpp:
+ (WebCore::ApplyPropertyVerticalAlign::applyValue):
+
2012-03-26 Filip Spacek <fspacek@rim.com>
[BlackBerry] Accelerated compositing updates
if (primitiveValue->getIdent())
return selector->style()->setVerticalAlign(*primitiveValue);
- selector->style()->setVerticalAlignLength(primitiveValue->convertToLength<FixedIntegerConversion | PercentConversion>(selector->style(), selector->rootElementStyle(), selector->style()->effectiveZoom()));
+ selector->style()->setVerticalAlignLength(primitiveValue->convertToLength<FixedIntegerConversion | PercentConversion | CalculatedConversion>(selector->style(), selector->rootElementStyle(), selector->style()->effectiveZoom()));
}
static PropertyHandler createHandler()