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

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: removed some todos Created 5 years, 4 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 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 case CSSPropertyWebkitBoxFlex: 1026 case CSSPropertyWebkitBoxFlex:
1027 validPrimitive = validUnit(value, FNumber); 1027 validPrimitive = validUnit(value, FNumber);
1028 break; 1028 break;
1029 case CSSPropertyWebkitBoxFlexGroup: 1029 case CSSPropertyWebkitBoxFlexGroup:
1030 validPrimitive = validUnit(value, FInteger | FNonNeg); 1030 validPrimitive = validUnit(value, FInteger | FNonNeg);
1031 break; 1031 break;
1032 case CSSPropertyWebkitBoxOrdinalGroup: 1032 case CSSPropertyWebkitBoxOrdinalGroup:
1033 validPrimitive = validUnit(value, FInteger | FNonNeg) && value->fValue; 1033 validPrimitive = validUnit(value, FInteger | FNonNeg) && value->fValue;
1034 break; 1034 break;
1035 case CSSPropertyWebkitFilter: 1035 case CSSPropertyWebkitFilter:
1036 case CSSPropertyBackdropFilter:
1036 if (id == CSSValueNone) 1037 if (id == CSSValueNone)
1037 validPrimitive = true; 1038 validPrimitive = true;
1038 else { 1039 else {
1039 RefPtrWillBeRawPtr<CSSValue> val = parseFilter(); 1040 RefPtrWillBeRawPtr<CSSValue> val = parseFilter();
1040 if (val) { 1041 if (val) {
1041 addProperty(propId, val, important); 1042 addProperty(propId, val, important);
1042 return true; 1043 return true;
1043 } 1044 }
1044 return false; 1045 return false;
1045 } 1046 }
(...skipping 7061 matching lines...) Expand 10 before | Expand all | Expand 10 after
8107 } 8108 }
8108 } 8109 }
8109 8110
8110 if (!list->length()) 8111 if (!list->length())
8111 return nullptr; 8112 return nullptr;
8112 8113
8113 return list.release(); 8114 return list.release();
8114 } 8115 }
8115 8116
8116 } // namespace blink 8117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698