Changeset 181191 in webkit
- Timestamp:
- Mar 6, 2015, 4:08:32 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 19 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/css3/blending/blend-mode-property-parsing-expected.txt (modified) (1 diff)
-
LayoutTests/css3/blending/blend-mode-simple-composited.html (modified) (1 diff)
-
LayoutTests/css3/blending/blend-mode-simple.html (modified) (1 diff)
-
LayoutTests/css3/blending/script-tests/blend-mode-property-parsing.js (modified) (1 diff)
-
LayoutTests/css3/blending/svg-blend-plus-lighter.html (added)
-
LayoutTests/platform/mac/css3/blending/blend-mode-simple-composited-expected.png (modified) ( previous)
-
LayoutTests/platform/mac/css3/blending/blend-mode-simple-composited-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac/css3/blending/blend-mode-simple-expected.png (modified) ( previous)
-
LayoutTests/platform/mac/css3/blending/blend-mode-simple-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac/css3/blending/svg-blend-plus-lighter-expected.txt (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSParser.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSPrimitiveValueMappings.h (modified) (2 diffs)
-
Source/WebCore/css/CSSValueKeywords.in (modified) (1 diff)
-
Source/WebCore/platform/graphics/GraphicsTypes.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/GraphicsTypes.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/ca/mac/PlatformCAFiltersMac.mm (modified) (1 diff)
-
Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp (modified) (1 diff)
-
Source/WebKit2/ChangeLog (modified) (1 diff)
-
Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r181189 r181191 1 2015-03-06 Dean Jackson <dino@apple.com> 2 3 Support "plus-lighter" in mix-blend mode 4 https://bugs.webkit.org/show_bug.cgi?id=142416 5 <rdar://problem/19993979> 6 7 Reviewed by Darin Adler and Sam Weinig. 8 9 Add tests and new expected results for plus-lighter. 10 11 * css3/blending/blend-mode-property-parsing-expected.txt: 12 * css3/blending/blend-mode-simple-composited.html: 13 * css3/blending/blend-mode-simple.html: 14 * css3/blending/script-tests/blend-mode-property-parsing.js: 15 * css3/blending/svg-blend-plus-lighter.html: Added. 16 * platform/mac/css3/blending/blend-mode-simple-composited-expected.png: 17 * platform/mac/css3/blending/blend-mode-simple-composited-expected.txt: 18 * platform/mac/css3/blending/blend-mode-simple-expected.png: 19 * platform/mac/css3/blending/blend-mode-simple-expected.txt: 20 * platform/mac/css3/blending/svg-blend-plus-lighter-expected.txt: Added. 21 1 22 2015-03-06 Brent Fulgham <bfulgham@apple.com> 2 23 -
trunk/LayoutTests/css3/blending/blend-mode-property-parsing-expected.txt
r178710 r181191 108 108 PASS jsWrapperClass(blendModeRule.__proto__) is 'CSSPrimitiveValuePrototype' 109 109 PASS jsWrapperClass(blendModeRule.constructor) is 'CSSPrimitiveValueConstructor' 110 111 Basic reference : plus-lighter 112 PASS cssRule.type is 1 113 PASS declaration.length is 1 114 PASS declaration.getPropertyValue('mix-blend-mode') is 'plus-lighter' 115 PASS jsWrapperClass(blendModeRule) is 'CSSPrimitiveValue' 116 PASS jsWrapperClass(blendModeRule.__proto__) is 'CSSPrimitiveValuePrototype' 117 PASS jsWrapperClass(blendModeRule.constructor) is 'CSSPrimitiveValueConstructor' 110 118 PASS successfullyParsed is true 111 119 -
trunk/LayoutTests/css3/blending/blend-mode-simple-composited.html
r178710 r181191 36 36 <li><img style="mix-blend-mode: exclusion" src="resources/ducky.png"></li> 37 37 <li><img style="mix-blend-mode: plus-darker" src="resources/ducky.png"></li> 38 <li><img style="mix-blend-mode: plus-lighter" src="resources/ducky.png"></li> 38 39 </ul> 39 40 </body> -
trunk/LayoutTests/css3/blending/blend-mode-simple.html
r178710 r181191 40 40 <li><img style="mix-blend-mode: exclusion" src="resources/ducky.png"></li> 41 41 <li><img style="mix-blend-mode: plus-darker" src="resources/ducky.png"></li> 42 <li><img style="mix-blend-mode: plus-lighter" src="resources/ducky.png"></li> 42 43 </ul> 43 44 </body> -
trunk/LayoutTests/css3/blending/script-tests/blend-mode-property-parsing.js
r178710 r181191 44 44 } 45 45 46 var blendmodes = ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "plus-darker" ];46 var blendmodes = ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "plus-darker", "plus-lighter"]; 47 47 48 48 for(x in blendmodes) -
trunk/LayoutTests/platform/mac/css3/blending/blend-mode-simple-composited-expected.txt
r178710 r181191 18 18 RenderBlock (floating) {LI} at (185,285) size 130x130 19 19 RenderBlock (floating) {LI} at (325,285) size 130x130 20 RenderBlock (floating) {LI} at (465,285) size 130x130 20 21 layer at (53,21) size 130x130 21 22 RenderImage {IMG} at (0,0) size 130x130 … … 44 45 layer at (333,301) size 130x130 blendMode: plus-darker 45 46 RenderImage {IMG} at (0,0) size 130x130 47 layer at (473,301) size 130x130 blendMode: plus-lighter 48 RenderImage {IMG} at (0,0) size 130x130 -
trunk/LayoutTests/platform/mac/css3/blending/blend-mode-simple-expected.txt
r178710 r181191 19 19 RenderBlock (floating) {LI} at (185,285) size 130x130 20 20 RenderBlock (floating) {LI} at (325,285) size 130x130 21 RenderBlock (floating) {LI} at (465,285) size 130x130 21 22 layer at (193,21) size 130x130 blendMode: overlay 22 23 RenderImage {IMG} at (0,0) size 130x130 … … 43 44 layer at (333,301) size 130x130 blendMode: plus-darker 44 45 RenderImage {IMG} at (0,0) size 130x130 46 layer at (473,301) size 130x130 blendMode: plus-lighter 47 RenderImage {IMG} at (0,0) size 130x130 -
trunk/Source/WebCore/ChangeLog
r181190 r181191 1 2015-03-06 Dean Jackson <dino@apple.com> 2 3 Support "plus-lighter" in mix-blend mode 4 https://bugs.webkit.org/show_bug.cgi?id=142416 5 <rdar://problem/19993979> 6 7 Reviewed by Darin Adler and Sam Weinig. 8 9 Support the "plus-lighter" blending mode to CSS. 10 See my reply to: https://lists.w3.org/Archives/Public/public-fx/2015JanMar/0021.html 11 12 Test: css3/blending/svg-blend-plus-lighter.html 13 14 * css/CSSParser.cpp: 15 (WebCore::isValidKeywordPropertyAndValue): mix-blend-mode can now accept the 16 new keyword. 17 * css/CSSPrimitiveValueMappings.h: Add the mappings to/from the GraphicsType. 18 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): 19 (WebCore::CSSPrimitiveValue::operator BlendMode): 20 * css/CSSValueKeywords.in: Add comment to show plus-darker and plus-lighter 21 are available. 22 * platform/graphics/GraphicsTypes.cpp: New GraphicsType for PlusLighter. 23 * platform/graphics/GraphicsTypes.h: 24 * platform/graphics/ca/mac/PlatformCAFiltersMac.mm: Map to the CA filter. 25 (PlatformCAFilters::setBlendingFiltersOnLayer): 26 * platform/graphics/cg/GraphicsContextCG.cpp: 27 (WebCore::GraphicsContext::setPlatformCompositeOperation): Map to the CG 28 blending flag. 29 1 30 2015-03-06 Alex Christensen <achristensen@webkit.org> 2 31 -
trunk/Source/WebCore/css/CSSParser.cpp
r180867 r181191 821 821 || valueID == CSSValueOverlay || valueID == CSSValueDarken || valueID == CSSValueLighten || valueID == CSSValueColorDodge 822 822 || valueID == CSSValueColorBurn || valueID == CSSValueHardLight || valueID == CSSValueSoftLight || valueID == CSSValueDifference 823 || valueID == CSSValueExclusion || valueID == CSSValuePlusDarker ))823 || valueID == CSSValueExclusion || valueID == CSSValuePlusDarker || valueID == CSSValuePlusLighter)) 824 824 return true; 825 825 break; -
trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h
r180965 r181191 4118 4118 case BlendModePlusDarker: 4119 4119 m_value.valueID = CSSValuePlusDarker; 4120 break; 4121 case BlendModePlusLighter: 4122 m_value.valueID = CSSValuePlusLighter; 4120 4123 break; 4121 4124 } … … 4161 4164 case CSSValuePlusDarker: 4162 4165 return BlendModePlusDarker; 4166 case CSSValuePlusLighter: 4167 return BlendModePlusLighter; 4163 4168 default: 4164 4169 break; -
trunk/Source/WebCore/css/CSSValueKeywords.in
r180965 r181191 1057 1057 color 1058 1058 luminosity 1059 // plus-darker 1060 // plus-lighter 1059 1061 1060 1062 // isolation -
trunk/Source/WebCore/platform/graphics/GraphicsTypes.cpp
r178710 r181191 67 67 "color", 68 68 "luminosity", 69 "plus-darker" 69 "plus-darker", 70 "plus-lighter" 70 71 }; 71 72 const int numCompositeOperatorNames = WTF_ARRAY_LENGTH(compositeOperatorNames); -
trunk/Source/WebCore/platform/graphics/GraphicsTypes.h
r178710 r181191 65 65 BlendModeColor, 66 66 BlendModeLuminosity, 67 BlendModePlusDarker 67 BlendModePlusDarker, 68 BlendModePlusLighter 68 69 }; 69 70 -
trunk/Source/WebCore/platform/graphics/ca/mac/PlatformCAFiltersMac.mm
r178710 r181191 581 581 filter = [CAFilter filterWithType:kCAFilterPlusD]; 582 582 break; 583 case BlendModePlusLighter: 584 filter = [CAFilter filterWithType:kCAFilterPlusL]; 585 break; 583 586 default: 584 587 ASSERT_NOT_REACHED(); -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r180511 r181191 1538 1538 target = kCGBlendModePlusDarker; 1539 1539 break; 1540 case BlendModePlusLighter: 1541 target = kCGBlendModePlusLighter; 1542 break; 1540 1543 default: 1541 1544 break; -
trunk/Source/WebKit2/ChangeLog
r181176 r181191 1 2015-03-06 Dean Jackson <dino@apple.com> 2 3 Support "plus-lighter" in mix-blend mode 4 https://bugs.webkit.org/show_bug.cgi?id=142416 5 <rdar://problem/19993979> 6 7 Reviewed by Darin Adler and Sam Weinig. 8 9 Output the appropriate blending type when logging. 10 11 * Shared/mac/RemoteLayerTreeTransaction.mm: 12 (WebKit::RemoteLayerTreeTextStream::operator<<): 13 1 14 2015-03-06 Beth Dakin <bdakin@apple.com> 2 15 -
trunk/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm
r180965 r181191 849 849 case BlendModeLuminosity: ts << "luminosity"; break; 850 850 case BlendModePlusDarker: ts << "plus-darker"; break; 851 case BlendModePlusLighter: ts << "plus-lighter"; break; 851 852 } 852 853 return ts;
Note:
See TracChangeset
for help on using the changeset viewer.