12012-06-05 David Barr <davidbarr@chromium.org>
2
3 Add css3-images image-resolution (dppx only)
4 https://bugs.webkit.org/show_bug.cgi?id=85332
5
6 Reviewed by NOBODY (OOPS!).
7
8 The css3-images module is at candidate recommendation.
9 http://www.w3.org/TR/2012/CR-css3-images-20120417/#image-resolution
10
11 Test: fast/css/image-resolution.html
12
13 * css/CSSComputedStyleDeclaration.cpp:
14 (WebCore):
15 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
16 * css/CSSGrammar.y:
17 * css/CSSParser.cpp:
18 (WebCore::CSSParser::validUnit):
19 (WebCore::CSSParser::createPrimitiveNumericValue):
20 (WebCore::unitFromString):
21 (WebCore::CSSParser::parseValidPrimitive):
22 (WebCore::CSSParser::parseValue):
23 (WebCore):
24 (WebCore::CSSParser::parseImageResolution):
25 (WebCore::CSSParser::detectNumberToken):
26 * css/CSSParser.h:
27 * css/CSSPrimitiveValue.cpp:
28 (WebCore::isValidCSSUnitTypeForDoubleConversion):
29 (WebCore::unitCategory):
30 (WebCore::CSSPrimitiveValue::canonicalUnitTypeForCategory):
31 (WebCore::CSSPrimitiveValue::customCssText):
32 (WebCore::CSSPrimitiveValue::cloneForCSSOM):
33 * css/CSSPrimitiveValue.h:
34 * css/CSSProperty.cpp:
35 (WebCore::CSSProperty::isInheritedProperty):
36 * css/CSSPropertyNames.in:
37 * css/StyleBuilder.cpp:
38 (WebCore):
39 (ApplyPropertyImageResolution):
40 (WebCore::ApplyPropertyImageResolution::applyInheritValue):
41 (WebCore::ApplyPropertyImageResolution::applyInitialValue):
42 (WebCore::ApplyPropertyImageResolution::applyValue):
43 (WebCore::ApplyPropertyImageResolution::createHandler):
44 (WebCore::StyleBuilder::StyleBuilder):
45 * css/StyleResolver.cpp:
46 (WebCore::StyleResolver::collectMatchingRulesForList):
47 * rendering/RenderImage.cpp:
48 (WebCore::RenderImage::styleDidChange):
49 (WebCore::RenderImage::imageDimensionsChanged):
50 * rendering/style/RenderStyle.cpp:
51 (WebCore::RenderStyle::diff):
52 * rendering/style/RenderStyle.h:
53 * rendering/style/StyleRareInheritedData.cpp:
54 (WebCore::StyleRareInheritedData::StyleRareInheritedData):
55 (WebCore::StyleRareInheritedData::operator==):
56 * rendering/style/StyleRareInheritedData.h:
57 (StyleRareInheritedData):
58