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

Side by Side Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 1299323005: blink: Add backdrop-filter support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: one more Created 5 years, 3 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
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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 case CSSPropertyWebkitBoxFlex: 1028 case CSSPropertyWebkitBoxFlex:
1029 validPrimitive = validUnit(value, FNumber); 1029 validPrimitive = validUnit(value, FNumber);
1030 break; 1030 break;
1031 case CSSPropertyWebkitBoxFlexGroup: 1031 case CSSPropertyWebkitBoxFlexGroup:
1032 validPrimitive = validUnit(value, FInteger | FNonNeg); 1032 validPrimitive = validUnit(value, FInteger | FNonNeg);
1033 break; 1033 break;
1034 case CSSPropertyWebkitBoxOrdinalGroup: 1034 case CSSPropertyWebkitBoxOrdinalGroup:
1035 validPrimitive = validUnit(value, FInteger | FNonNeg) && value->fValue; 1035 validPrimitive = validUnit(value, FInteger | FNonNeg) && value->fValue;
1036 break; 1036 break;
1037 case CSSPropertyWebkitFilter: 1037 case CSSPropertyWebkitFilter:
1038 case CSSPropertyBackdropFilter:
1038 if (id == CSSValueNone) 1039 if (id == CSSValueNone)
1039 validPrimitive = true; 1040 validPrimitive = true;
1040 else { 1041 else {
1041 RefPtrWillBeRawPtr<CSSValue> val = parseFilter(); 1042 RefPtrWillBeRawPtr<CSSValue> val = parseFilter();
1042 if (val) { 1043 if (val) {
1043 addProperty(propId, val, important); 1044 addProperty(propId, val, important);
1044 return true; 1045 return true;
1045 } 1046 }
1046 return false; 1047 return false;
1047 } 1048 }
(...skipping 7061 matching lines...) Expand 10 before | Expand all | Expand 10 after
8109 } 8110 }
8110 } 8111 }
8111 8112
8112 if (!list->length()) 8113 if (!list->length())
8113 return nullptr; 8114 return nullptr;
8114 8115
8115 return list.release(); 8116 return list.release();
8116 } 8117 }
8117 8118
8118 } // namespace blink 8119 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698