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

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

Issue 943463002: Initial implementation of font-size-adjust (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add some tests which need a rebaseline to TestExpectation Created 5 years, 9 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 } 1045 }
1046 return false; 1046 return false;
1047 } 1047 }
1048 break; 1048 break;
1049 case CSSPropertyWebkitBoxReflect: 1049 case CSSPropertyWebkitBoxReflect:
1050 if (id == CSSValueNone) 1050 if (id == CSSValueNone)
1051 validPrimitive = true; 1051 validPrimitive = true;
1052 else 1052 else
1053 parsedValue = parseReflect(); 1053 parsedValue = parseReflect();
1054 break; 1054 break;
1055 case CSSPropertyFontSizeAdjust: // none | <number>
1056 ASSERT(RuntimeEnabledFeatures::cssFontSizeAdjustEnabled());
1057 validPrimitive = (id == CSSValueNone) ? true : validUnit(value, FNumber | FNonNeg);
1058 break;
1055 case CSSPropertyOpacity: 1059 case CSSPropertyOpacity:
1056 validPrimitive = validUnit(value, FNumber); 1060 validPrimitive = validUnit(value, FNumber);
1057 break; 1061 break;
1058 case CSSPropertyWebkitBoxFlex: 1062 case CSSPropertyWebkitBoxFlex:
1059 validPrimitive = validUnit(value, FNumber); 1063 validPrimitive = validUnit(value, FNumber);
1060 break; 1064 break;
1061 case CSSPropertyWebkitBoxFlexGroup: 1065 case CSSPropertyWebkitBoxFlexGroup:
1062 validPrimitive = validUnit(value, FInteger | FNonNeg); 1066 validPrimitive = validUnit(value, FInteger | FNonNeg);
1063 break; 1067 break;
1064 case CSSPropertyWebkitBoxOrdinalGroup: 1068 case CSSPropertyWebkitBoxOrdinalGroup:
(...skipping 7408 matching lines...) Expand 10 before | Expand all | Expand 10 after
8473 } 8477 }
8474 } 8478 }
8475 8479
8476 if (!list->length()) 8480 if (!list->length())
8477 return nullptr; 8481 return nullptr;
8478 8482
8479 return list.release(); 8483 return list.release();
8480 } 8484 }
8481 8485
8482 } // namespace blink 8486 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/LayoutStyleCSSValueMapping.cpp ('k') | Source/core/css/resolver/CSSPropertyPriority.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698