Move rem handling out of CSSParserValues
commitd812aa44e41e571c4fd26a50dc76bbc200205149
authorrob.buis@samsung.com <rob.buis@samsung.com>
Fri, 31 Jul 2015 00:59:02 +0000 (31 00:59 +0000)
committerrob.buis@samsung.com <rob.buis@samsung.com>
Fri, 31 Jul 2015 00:59:02 +0000 (31 00:59 +0000)
tree1f61bbc5cbb6f98d9e69f83b01e09b79a7cfe2d7
parentb96c97d9ac0ff7edc39f4b76099c5d17b11dc739
Move rem handling out of CSSParserValues

Move rem handling out of CSSParserValues and instead keep track of
whether rem units were applied per ComputedStyle. Then once styleForElement
is finished if rem units were used we inform StyleEngine.

Add rem-calc-dynamic-scaling.html for using rem with calc().

BUG=499780, 515611

Review URL: https://codereview.chromium.org/1181023004

git-svn-id: svn://svn.chromium.org/blink/trunk@199770 bbb929c8-8fbe-4397-9dbb-9b2b20218538
26 files changed:
third_party/WebKit/LayoutTests/fast/css/rem-calc-dynamic-scaling.html [new file with mode: 0644]
third_party/WebKit/LayoutTests/platform/linux/fast/css/rem-calc-dynamic-scaling-expected.png [new file with mode: 0644]
third_party/WebKit/LayoutTests/platform/linux/fast/css/rem-calc-dynamic-scaling-expected.txt [new file with mode: 0644]
third_party/WebKit/LayoutTests/platform/mac/fast/css/rem-calc-dynamic-scaling-expected.png [new file with mode: 0644]
third_party/WebKit/LayoutTests/platform/mac/fast/css/rem-calc-dynamic-scaling-expected.txt [new file with mode: 0644]
third_party/WebKit/LayoutTests/platform/win-xp/fast/css/rem-calc-dynamic-scaling-expected.png [new file with mode: 0644]
third_party/WebKit/LayoutTests/platform/win-xp/fast/css/rem-calc-dynamic-scaling-expected.txt [new file with mode: 0644]
third_party/WebKit/LayoutTests/platform/win/fast/css/rem-calc-dynamic-scaling-expected.png [new file with mode: 0644]
third_party/WebKit/LayoutTests/platform/win/fast/css/rem-calc-dynamic-scaling-expected.txt [new file with mode: 0644]
third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp
third_party/WebKit/Source/core/css/CSSToLengthConversionData.h
third_party/WebKit/Source/core/css/StyleSheetContents.cpp
third_party/WebKit/Source/core/css/StyleSheetContents.h
third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
third_party/WebKit/Source/core/css/parser/CSSParserValues.cpp
third_party/WebKit/Source/core/css/parser/CSSParserValues.h
third_party/WebKit/Source/core/css/parser/CSSParserValuesTest.cpp
third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
third_party/WebKit/Source/core/dom/Document.cpp
third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.cpp
third_party/WebKit/Source/core/dom/StyleEngine.cpp
third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.h
third_party/WebKit/Source/core/style/ComputedStyle.cpp
third_party/WebKit/Source/core/style/ComputedStyle.h