Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Side by Side Diff: Source/core/css/parser/BisonCSSParser-in.cpp

Issue 174903002: Expose the CSS background-blend-mode property, (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/RuntimeCSSEnabled.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 4084 matching lines...) Expand 10 before | Expand all | Expand 10 after
4095 break; 4095 break;
4096 } 4096 }
4097 case CSSPropertyWebkitBackgroundComposite: 4097 case CSSPropertyWebkitBackgroundComposite:
4098 case CSSPropertyWebkitMaskComposite: 4098 case CSSPropertyWebkitMaskComposite:
4099 if (val->id >= CSSValueClear && val->id <= CSSValuePlusLight er) { 4099 if (val->id >= CSSValueClear && val->id <= CSSValuePlusLight er) {
4100 currValue = cssValuePool().createIdentifierValue(val->id ); 4100 currValue = cssValuePool().createIdentifierValue(val->id );
4101 m_valueList->next(); 4101 m_valueList->next();
4102 } 4102 }
4103 break; 4103 break;
4104 case CSSPropertyBackgroundBlendMode: 4104 case CSSPropertyBackgroundBlendMode:
4105 if (RuntimeEnabledFeatures::cssCompositingEnabled() && (val- >id == CSSValueNormal || val->id == CSSValueMultiply 4105 if (val->id == CSSValueNormal || val->id == CSSValueMultiply
4106 || val->id == CSSValueScreen || val->id == CSSValueOverl ay || val->id == CSSValueDarken 4106 || val->id == CSSValueScreen || val->id == CSSValueOverl ay || val->id == CSSValueDarken
4107 || val->id == CSSValueLighten || val->id == CSSValueCol orDodge || val->id == CSSValueColorBurn 4107 || val->id == CSSValueLighten || val->id == CSSValueCol orDodge || val->id == CSSValueColorBurn
4108 || val->id == CSSValueHardLight || val->id == CSSValueSo ftLight || val->id == CSSValueDifference 4108 || val->id == CSSValueHardLight || val->id == CSSValueSo ftLight || val->id == CSSValueDifference
4109 || val->id == CSSValueExclusion || val->id == CSSValueHu e || val->id == CSSValueSaturation 4109 || val->id == CSSValueExclusion || val->id == CSSValueHu e || val->id == CSSValueSaturation
4110 || val->id == CSSValueColor || val->id == CSSValueLumino sity)) { 4110 || val->id == CSSValueColor || val->id == CSSValueLumino sity) {
4111 currValue = cssValuePool().createIdentifierValue(val->id ); 4111 currValue = cssValuePool().createIdentifierValue(val->id );
4112 m_valueList->next(); 4112 m_valueList->next();
4113 } 4113 }
4114 break; 4114 break;
4115 case CSSPropertyBackgroundRepeat: 4115 case CSSPropertyBackgroundRepeat:
4116 case CSSPropertyWebkitMaskRepeat: 4116 case CSSPropertyWebkitMaskRepeat:
4117 parseFillRepeat(currValue, currValue2); 4117 parseFillRepeat(currValue, currValue2);
4118 // parseFillRepeat advances the m_valueList pointer 4118 // parseFillRepeat advances the m_valueList pointer
4119 break; 4119 break;
4120 case CSSPropertyBackgroundSize: 4120 case CSSPropertyBackgroundSize:
(...skipping 6040 matching lines...) Expand 10 before | Expand all | Expand 10 after
10161 { 10161 {
10162 // The tokenizer checks for the construct of an+b. 10162 // The tokenizer checks for the construct of an+b.
10163 // However, since the {ident} rule precedes the {nth} rule, some of those 10163 // However, since the {ident} rule precedes the {nth} rule, some of those
10164 // tokens are identified as string literal. Furthermore we need to accept 10164 // tokens are identified as string literal. Furthermore we need to accept
10165 // "odd" and "even" which does not match to an+b. 10165 // "odd" and "even" which does not match to an+b.
10166 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") 10166 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even")
10167 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); 10167 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n");
10168 } 10168 }
10169 10169
10170 } 10170 }
OLDNEW
« no previous file with comments | « Source/core/css/RuntimeCSSEnabled.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698