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

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

Issue 2192283002: Remove confusing unitless quirk hint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/css/parser/CSSPropertyParser.h" 5 #include "core/css/parser/CSSPropertyParser.h"
6 6
7 #include "core/StylePropertyShorthand.h" 7 #include "core/StylePropertyShorthand.h"
8 #include "core/css/CSSBasicShapeValues.h" 8 #include "core/css/CSSBasicShapeValues.h"
9 #include "core/css/CSSBorderImage.h" 9 #include "core/css/CSSBorderImage.h"
10 #include "core/css/CSSContentDistributionValue.h" 10 #include "core/css/CSSContentDistributionValue.h"
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1902 } 1902 }
1903 1903
1904 static CSSValue* consumeStrokeDasharray(CSSParserTokenRange& range) 1904 static CSSValue* consumeStrokeDasharray(CSSParserTokenRange& range)
1905 { 1905 {
1906 CSSValueID id = range.peek().id(); 1906 CSSValueID id = range.peek().id();
1907 if (id == CSSValueNone) 1907 if (id == CSSValueNone)
1908 return consumeIdent(range); 1908 return consumeIdent(range);
1909 1909
1910 CSSValueList* dashes = CSSValueList::createCommaSeparated(); 1910 CSSValueList* dashes = CSSValueList::createCommaSeparated();
1911 do { 1911 do {
1912 CSSPrimitiveValue* dash = consumeLengthOrPercent(range, SVGAttributeMode , ValueRangeNonNegative, UnitlessQuirk::Allow); 1912 CSSPrimitiveValue* dash = consumeLengthOrPercent(range, SVGAttributeMode , ValueRangeNonNegative);
1913 if (!dash || (consumeCommaIncludingWhitespace(range) && range.atEnd())) 1913 if (!dash || (consumeCommaIncludingWhitespace(range) && range.atEnd()))
1914 return nullptr; 1914 return nullptr;
1915 dashes->append(*dash); 1915 dashes->append(*dash);
1916 } while (!range.atEnd()); 1916 } while (!range.atEnd());
1917 return dashes; 1917 return dashes;
1918 } 1918 }
1919 1919
1920 static CSSPrimitiveValue* consumeBaselineShift(CSSParserTokenRange& range) 1920 static CSSPrimitiveValue* consumeBaselineShift(CSSParserTokenRange& range)
1921 { 1921 {
1922 CSSValueID id = range.peek().id(); 1922 CSSValueID id = range.peek().id();
(...skipping 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after
5181 case CSSPropertyGridTemplate: 5181 case CSSPropertyGridTemplate:
5182 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); 5182 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important);
5183 case CSSPropertyGrid: 5183 case CSSPropertyGrid:
5184 return consumeGridShorthand(important); 5184 return consumeGridShorthand(important);
5185 default: 5185 default:
5186 return false; 5186 return false;
5187 } 5187 }
5188 } 5188 }
5189 5189
5190 } // namespace blink 5190 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698