ASSERTION FAILED: m_fonts in &WebCore::FontCascade::primaryFont
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 23 Oct 2016 07:23:28 +0000 (07:23 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 23 Oct 2016 07:23:28 +0000 (07:23 +0000)
commitd6d8d7906315c8be2f22ba40010995279a36d361
tree48ed183398ca8a72fbdb8b427cd8c055567fe86d
parentf62a9b67803133a412348f6379295bd64bffc7b5
ASSERTION FAILED: m_fonts in &WebCore::FontCascade::primaryFont
https://bugs.webkit.org/show_bug.cgi?id=163459

Reviewed by Darin Adler.

Source/WebCore:

The CSS Units and Values spec states that font-relative units, when used
in the font-size property, are resolved against the parent element. When
calc() is specified, we were trying to resolve them against the current
element, which is impossible because of the circular dependency. Instead,
we should resolve against the parent style the same way as when calc()
isn't specified.

Test: fast/text/font-size-calc.html

* css/StyleBuilderCustom.h:
(WebCore::StyleBuilderCustom::applyValueFontSize):

LayoutTests:

* fast/text/font-size-calc-expected.txt: Added.
* fast/text/font-size-calc.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207726 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/font-size-calc-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/font-size-calc.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/StyleBuilderCustom.h