Changeset 168167 in webkit
- Timestamp:
- May 2, 2014 2:35:34 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r168150 r168167 1 2014-05-02 Ion Rosca <rosca@adobe.com> 2 3 [CSS Blending] Remove support for non-separable blend modes from background-blend-mode 4 https://bugs.webkit.org/show_bug.cgi?id=132327 5 6 Reviewed by Dean Jackson. 7 8 * css3/compositing/background-blend-mode-gif-color-2.html: 9 * css3/compositing/background-blend-mode-gif-color.html: 10 * css3/compositing/background-blend-mode-gradient-color.html: 11 * css3/compositing/background-blend-mode-gradient-gradient.html: 12 * css3/compositing/background-blend-mode-gradient-image.html: 13 * css3/compositing/background-blend-mode-image-color.html: 14 * css3/compositing/background-blend-mode-image-image.html: 15 * css3/compositing/background-blend-mode-image-svg.html: 16 * css3/compositing/background-blend-mode-multiple-background-layers.html: 17 * css3/compositing/background-blend-mode-property-expected.txt: 18 * css3/compositing/background-blend-mode-property-parsing-expected.txt: 19 * css3/compositing/background-blend-mode-svg-color.html: 20 * css3/compositing/effect-background-blend-mode-tiled.html: 21 * css3/compositing/effect-background-blend-mode.html: 22 * css3/compositing/script-tests/background-blend-mode-property-parsing.js: 23 * css3/compositing/script-tests/background-blend-mode-property.js: 24 * platform/mac/css3/compositing/background-blend-mode-gif-color-2-expected.png: 25 * platform/mac/css3/compositing/background-blend-mode-gif-color-2-expected.txt: 26 * platform/mac/css3/compositing/background-blend-mode-gif-color-expected.png: 27 * platform/mac/css3/compositing/background-blend-mode-gif-color-expected.txt: 28 * platform/mac/css3/compositing/background-blend-mode-gradient-color-expected.png: 29 * platform/mac/css3/compositing/background-blend-mode-gradient-gradient-expected.png: 30 * platform/mac/css3/compositing/background-blend-mode-gradient-image-expected.png: 31 * platform/mac/css3/compositing/background-blend-mode-image-color-expected.png: 32 * platform/mac/css3/compositing/background-blend-mode-image-color-expected.txt: 33 * platform/mac/css3/compositing/background-blend-mode-image-image-expected.png: 34 * platform/mac/css3/compositing/background-blend-mode-image-image-expected.txt: 35 * platform/mac/css3/compositing/background-blend-mode-image-svg-expected.png: 36 * platform/mac/css3/compositing/background-blend-mode-multiple-background-layers-expected.png: 37 * platform/mac/css3/compositing/background-blend-mode-svg-color-expected.png: 38 1 39 2014-05-01 Alexey Proskuryakov <ap@apple.com> 2 40 -
trunk/LayoutTests/css3/compositing/background-blend-mode-gif-color-2.html
r163633 r168167 35 35 <div style="background-blend-mode: difference, normal"></div> 36 36 <div style="background-blend-mode: exclusion, normal"></div> 37 <div style="background-blend-mode: hue, normal;"></div>38 <div style="background-blend-mode: saturation, normal"></div>39 <div style="background-blend-mode: color, normal"></div>40 <div style="background-blend-mode: luminosity, normal"></div>41 37 <script type="text/javascript"> 42 38 window.setTimeout("done()", 400); -
trunk/LayoutTests/css3/compositing/background-blend-mode-gif-color.html
r163633 r168167 25 25 <div style="background-blend-mode: difference, normal"></div> 26 26 <div style="background-blend-mode: exclusion, normal"></div> 27 <div style="background-blend-mode: hue, normal;"></div>28 <div style="background-blend-mode: saturation, normal"></div>29 <div style="background-blend-mode: color, normal"></div>30 <div style="background-blend-mode: luminosity, normal"></div>31 27 </body> 32 28 </html> -
trunk/LayoutTests/css3/compositing/background-blend-mode-gradient-color.html
r163633 r168167 31 31 <li style="background-blend-mode: difference, normal"></li> 32 32 <li style="background-blend-mode: exclusion, normal"></li> 33 <li style="background-blend-mode: hue, normal;"></li>34 <li style="background-blend-mode: saturation, normal"></li>35 <li style="background-blend-mode: color, normal"></li>36 <li style="background-blend-mode: luminosity, normal"></li>37 33 </ul> 38 34 </body> -
trunk/LayoutTests/css3/compositing/background-blend-mode-gradient-gradient.html
r163633 r168167 31 31 <li style="background-blend-mode: difference, normal"></li> 32 32 <li style="background-blend-mode: exclusion, normal"></li> 33 <li style="background-blend-mode: hue, normal;"></li>34 <li style="background-blend-mode: saturation, normal"></li>35 <li style="background-blend-mode: color, normal"></li>36 <li style="background-blend-mode: luminosity, normal"></li>37 33 </ul> 38 34 </body> -
trunk/LayoutTests/css3/compositing/background-blend-mode-gradient-image.html
r163633 r168167 31 31 <li style="background-blend-mode: difference, normal"></li> 32 32 <li style="background-blend-mode: exclusion, normal"></li> 33 <li style="background-blend-mode: hue, normal;"></li>34 <li style="background-blend-mode: saturation, normal"></li>35 <li style="background-blend-mode: color, normal"></li>36 <li style="background-blend-mode: luminosity, normal"></li>37 33 </ul> 38 34 </body> -
trunk/LayoutTests/css3/compositing/background-blend-mode-image-color.html
r163633 r168167 27 27 <li style="background-blend-mode: difference, normal"></li> 28 28 <li style="background-blend-mode: exclusion, normal"></li> 29 <li style="background-blend-mode: hue, normal;"></li>30 <li style="background-blend-mode: saturation, normal"></li>31 <li style="background-blend-mode: color, normal"></li>32 <li style="background-blend-mode: luminosity, normal"></li>33 29 </ul> 34 30 </body> -
trunk/LayoutTests/css3/compositing/background-blend-mode-image-image.html
r163633 r168167 27 27 <li style="background-blend-mode: difference, normal"></li> 28 28 <li style="background-blend-mode: exclusion, normal"></li> 29 <li style="background-blend-mode: hue, normal;"></li>30 <li style="background-blend-mode: saturation, normal"></li>31 <li style="background-blend-mode: color, normal"></li>32 <li style="background-blend-mode: luminosity, normal"></li>33 29 </ul> 34 30 </body> -
trunk/LayoutTests/css3/compositing/background-blend-mode-image-svg.html
r163633 r168167 31 31 <li style="background-blend-mode: difference, normal"></li> 32 32 <li style="background-blend-mode: exclusion, normal"></li> 33 <li style="background-blend-mode: hue, normal;"></li>34 <li style="background-blend-mode: saturation, normal"></li>35 <li style="background-blend-mode: color, normal"></li>36 <li style="background-blend-mode: luminosity, normal"></li>37 33 </ul> 38 34 </body> -
trunk/LayoutTests/css3/compositing/background-blend-mode-multiple-background-layers.html
r163633 r168167 17 17 <!-- This file should contain two divs with 3 background layers. Test background blend mode differences when only one layer blends differently. --> 18 18 <body> 19 <div style="background-blend-mode: hue, difference, normal;"></div>19 <div style="background-blend-mode: multiply, difference, normal;"></div> 20 20 <div style="background-blend-mode: difference, difference, normal;"></div> 21 21 </body> -
trunk/LayoutTests/css3/compositing/background-blend-mode-property-expected.txt
r163633 r168167 40 40 PASS declaration.length is 1 41 41 PASS declaration.getPropertyValue('background-blend-mode') is 'exclusion, exclusion' 42 PASS cssRule.type is 143 PASS declaration.length is 144 PASS declaration.getPropertyValue('background-blend-mode') is 'hue, hue'45 PASS cssRule.type is 146 PASS declaration.length is 147 PASS declaration.getPropertyValue('background-blend-mode') is 'saturation, saturation'48 PASS cssRule.type is 149 PASS declaration.length is 150 PASS declaration.getPropertyValue('background-blend-mode') is 'color, color'51 PASS cssRule.type is 152 PASS declaration.length is 153 PASS declaration.getPropertyValue('background-blend-mode') is 'luminosity, luminosity'54 42 PASS successfullyParsed is true 55 43 -
trunk/LayoutTests/css3/compositing/background-blend-mode-property-parsing-expected.txt
r163633 r168167 21 21 PASS jsWrapperClass(blendModeRule.constructor) is 'CSSValueListConstructor' 22 22 23 Basic reference : screen, hue23 Basic reference : screen, multiply 24 24 PASS cssRule.type is 1 25 25 PASS declaration.length is 1 26 PASS declaration.getPropertyValue('background-blend-mode') is 'screen, hue'26 PASS declaration.getPropertyValue('background-blend-mode') is 'screen, multiply' 27 27 PASS jsWrapperClass(blendModeRule) is 'CSSValueList' 28 28 PASS jsWrapperClass(blendModeRule.__proto__) is 'CSSValueListPrototype' … … 37 37 PASS jsWrapperClass(blendModeRule.constructor) is 'CSSValueListConstructor' 38 38 39 Basic reference : darken, lighten, normal, luminosity39 Basic reference : darken, lighten, normal, multiply 40 40 PASS cssRule.type is 1 41 41 PASS declaration.length is 1 42 PASS declaration.getPropertyValue('background-blend-mode') is 'darken, lighten, normal, luminosity'42 PASS declaration.getPropertyValue('background-blend-mode') is 'darken, lighten, normal, multiply' 43 43 PASS jsWrapperClass(blendModeRule) is 'CSSValueList' 44 44 PASS jsWrapperClass(blendModeRule.__proto__) is 'CSSValueListPrototype' … … 100 100 PASS jsWrapperClass(blendModeRule.__proto__) is 'CSSPrimitiveValuePrototype' 101 101 PASS jsWrapperClass(blendModeRule.constructor) is 'CSSPrimitiveValueConstructor' 102 103 Basic reference : hue104 PASS cssRule.type is 1105 PASS declaration.length is 1106 PASS declaration.getPropertyValue('background-blend-mode') is 'hue'107 PASS jsWrapperClass(blendModeRule) is 'CSSPrimitiveValue'108 PASS jsWrapperClass(blendModeRule.__proto__) is 'CSSPrimitiveValuePrototype'109 PASS jsWrapperClass(blendModeRule.constructor) is 'CSSPrimitiveValueConstructor'110 111 Basic reference : saturation112 PASS cssRule.type is 1113 PASS declaration.length is 1114 PASS declaration.getPropertyValue('background-blend-mode') is 'saturation'115 PASS jsWrapperClass(blendModeRule) is 'CSSPrimitiveValue'116 PASS jsWrapperClass(blendModeRule.__proto__) is 'CSSPrimitiveValuePrototype'117 PASS jsWrapperClass(blendModeRule.constructor) is 'CSSPrimitiveValueConstructor'118 119 Basic reference : color120 PASS cssRule.type is 1121 PASS declaration.length is 1122 PASS declaration.getPropertyValue('background-blend-mode') is 'color'123 PASS jsWrapperClass(blendModeRule) is 'CSSPrimitiveValue'124 PASS jsWrapperClass(blendModeRule.__proto__) is 'CSSPrimitiveValuePrototype'125 PASS jsWrapperClass(blendModeRule.constructor) is 'CSSPrimitiveValueConstructor'126 127 Basic reference : luminosity128 PASS cssRule.type is 1129 PASS declaration.length is 1130 PASS declaration.getPropertyValue('background-blend-mode') is 'luminosity'131 PASS jsWrapperClass(blendModeRule) is 'CSSPrimitiveValue'132 PASS jsWrapperClass(blendModeRule.__proto__) is 'CSSPrimitiveValuePrototype'133 PASS jsWrapperClass(blendModeRule.constructor) is 'CSSPrimitiveValueConstructor'134 102 PASS successfullyParsed is true 135 103 -
trunk/LayoutTests/css3/compositing/background-blend-mode-svg-color.html
r163633 r168167 31 31 <div style="background-blend-mode: difference, normal"></div> 32 32 <div style="background-blend-mode: exclusion, normal"></div> 33 <div style="background-blend-mode: hue, normal;"></div>34 <div style="background-blend-mode: saturation, normal"></div>35 <div style="background-blend-mode: color, normal"></div>36 <div style="background-blend-mode: luminosity, normal"></div>37 33 </body> 38 34 </html> -
trunk/LayoutTests/css3/compositing/effect-background-blend-mode-tiled.html
r163633 r168167 31 31 <li style="background-blend-mode: difference, normal"></li> 32 32 <li style="background-blend-mode: exclusion, normal"></li> 33 <li style="background-blend-mode: hue, normal;"></li>34 <li style="background-blend-mode: saturation, normal"></li>35 <li style="background-blend-mode: color, normal"></li>36 <li style="background-blend-mode: luminosity, normal"></li>37 33 </ul> 38 34 </body> -
trunk/LayoutTests/css3/compositing/effect-background-blend-mode.html
r163633 r168167 34 34 <li style="background-blend-mode: difference, normal"></li> 35 35 <li style="background-blend-mode: exclusion, normal"></li> 36 <li style="background-blend-mode: hue, normal;"></li>37 <li style="background-blend-mode: saturation, normal"></li>38 <li style="background-blend-mode: color, normal"></li>39 <li style="background-blend-mode: luminosity, normal"></li>40 36 </ul> 41 37 </body> -
trunk/LayoutTests/css3/compositing/script-tests/background-blend-mode-property-parsing.js
r163633 r168167 47 47 } 48 48 49 var blendmodes = ["normal", "multiply, screen", "screen, hue", "overlay, normal", "darken, lighten, normal, luminosity", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];49 var blendmodes = ["normal", "multiply, screen", "screen, multiply", "overlay, normal", "darken, lighten, normal, multiply", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion"]; 50 50 51 51 for(x in blendmodes) -
trunk/LayoutTests/css3/compositing/script-tests/background-blend-mode-property.js
r163633 r168167 21 21 } 22 22 23 var blendmodes = ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion" , "hue", "saturation", "color", "luminosity"];23 var blendmodes = ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion"]; 24 24 25 25 for(x in blendmodes) -
trunk/LayoutTests/platform/mac/css3/compositing/background-blend-mode-gif-color-2-expected.txt
r155097 r168167 15 15 RenderBlock (floating) {DIV} at (565,145) size 130x130 [bgcolor=#008000] 16 16 RenderBlock (floating) {DIV} at (5,285) size 130x130 [bgcolor=#008000] 17 RenderBlock (floating) {DIV} at (145,285) size 130x130 [bgcolor=#008000]18 RenderBlock (floating) {DIV} at (285,285) size 130x130 [bgcolor=#008000]19 RenderBlock (floating) {DIV} at (425,285) size 130x130 [bgcolor=#008000]20 RenderBlock (floating) {DIV} at (565,285) size 130x130 [bgcolor=#008000] -
trunk/LayoutTests/platform/mac/css3/compositing/background-blend-mode-gif-color-expected.txt
r155097 r168167 15 15 RenderBlock (floating) {DIV} at (565,145) size 130x130 [bgcolor=#008000] 16 16 RenderBlock (floating) {DIV} at (5,285) size 130x130 [bgcolor=#008000] 17 RenderBlock (floating) {DIV} at (145,285) size 130x130 [bgcolor=#008000]18 RenderBlock (floating) {DIV} at (285,285) size 130x130 [bgcolor=#008000]19 RenderBlock (floating) {DIV} at (425,285) size 130x130 [bgcolor=#008000]20 RenderBlock (floating) {DIV} at (565,285) size 130x130 [bgcolor=#008000] -
trunk/LayoutTests/platform/mac/css3/compositing/background-blend-mode-image-color-expected.txt
r151567 r168167 1 1 layer at (0,0) size 800x600 2 2 RenderView at (0,0) size 800x600 3 layer at (0,0) size 800x 5764 RenderBlock {HTML} at (0,0) size 800x 5763 layer at (0,0) size 800x436 4 RenderBlock {HTML} at (0,0) size 800x436 5 5 RenderBody {BODY} at (8,16) size 784x0 6 6 RenderBlock {UL} at (0,0) size 784x0 … … 17 17 RenderBlock (floating) {LI} at (45,285) size 130x130 [bgcolor=#008000] 18 18 RenderBlock (floating) {LI} at (185,285) size 130x130 [bgcolor=#008000] 19 RenderBlock (floating) {LI} at (325,285) size 130x130 [bgcolor=#008000]20 RenderBlock (floating) {LI} at (465,285) size 130x130 [bgcolor=#008000]21 RenderBlock (floating) {LI} at (605,285) size 130x130 [bgcolor=#008000]22 RenderBlock (floating) {LI} at (45,425) size 130x130 [bgcolor=#008000] -
trunk/LayoutTests/platform/mac/css3/compositing/background-blend-mode-image-image-expected.txt
r151567 r168167 1 1 layer at (0,0) size 800x600 2 2 RenderView at (0,0) size 800x600 3 layer at (0,0) size 800x 5764 RenderBlock {HTML} at (0,0) size 800x 5763 layer at (0,0) size 800x436 4 RenderBlock {HTML} at (0,0) size 800x436 5 5 RenderBody {BODY} at (8,16) size 784x0 6 6 RenderBlock {UL} at (0,0) size 784x0 … … 16 16 RenderBlock (floating) {LI} at (45,285) size 130x130 17 17 RenderBlock (floating) {LI} at (185,285) size 130x130 18 RenderBlock (floating) {LI} at (325,285) size 130x13019 RenderBlock (floating) {LI} at (465,285) size 130x13020 RenderBlock (floating) {LI} at (605,285) size 130x13021 RenderBlock (floating) {LI} at (45,425) size 130x13022 18 layer at (473,21) size 130x130 23 19 RenderBlock (floating) {LI} at (465,5) size 130x130 -
trunk/Source/WebCore/ChangeLog
r168166 r168167 1 2014-05-02 Ion Rosca <rosca@adobe.com> 2 3 [CSS Blending] Remove support for non-separable blend modes from background-blend-mode 4 https://bugs.webkit.org/show_bug.cgi?id=132327 5 6 Reviewed by Dean Jackson. 7 8 Removed support for non-separable background blend modes from the CSS parser. 9 Covered by existing tests. 10 11 * css/CSSParser.cpp: 12 (WebCore::CSSParser::parseFillProperty): 13 1 14 2014-05-02 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 15 -
trunk/Source/WebCore/css/CSSParser.cpp
r168108 r168167 4308 4308 || val->id == CSSValueLighten || val->id == CSSValueColorDodge || val->id == CSSValueColorBurn 4309 4309 || val->id == CSSValueHardLight || val->id == CSSValueSoftLight || val->id == CSSValueDifference 4310 || val->id == CSSValueExclusion || val->id == CSSValueHue || val->id == CSSValueSaturation 4311 || val->id == CSSValueColor || val->id == CSSValueLuminosity)) { 4310 || val->id == CSSValueExclusion)) { 4312 4311 currValue = cssValuePool().createIdentifierValue(val->id); 4313 4312 m_valueList->next();
Note: See TracChangeset
for help on using the changeset viewer.