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

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

Issue 1939813002: Update word-spacing TODO (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 4 years, 7 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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 } 599 }
600 } 600 }
601 } while (consumeCommaIncludingWhitespace(range)); 601 } while (consumeCommaIncludingWhitespace(range));
602 return list; 602 return list;
603 } 603 }
604 604
605 static CSSValue* consumeSpacing(CSSParserTokenRange& range, CSSParserMode cssPar serMode) 605 static CSSValue* consumeSpacing(CSSParserTokenRange& range, CSSParserMode cssPar serMode)
606 { 606 {
607 if (range.peek().id() == CSSValueNormal) 607 if (range.peek().id() == CSSValueNormal)
608 return consumeIdent(range); 608 return consumeIdent(range);
609 // TODO(timloh): Don't allow unitless values, and allow <percentage>s in wor d-spacing. 609 // TODO(timloh): allow <percentage>s in word-spacing.
610 return consumeLength(range, cssParserMode, ValueRangeAll, UnitlessQuirk::All ow); 610 return consumeLength(range, cssParserMode, ValueRangeAll, UnitlessQuirk::All ow);
611 } 611 }
612 612
613 static CSSValue* consumeTabSize(CSSParserTokenRange& range, CSSParserMode cssPar serMode) 613 static CSSValue* consumeTabSize(CSSParserTokenRange& range, CSSParserMode cssPar serMode)
614 { 614 {
615 CSSPrimitiveValue* parsedValue = consumeInteger(range, 0); 615 CSSPrimitiveValue* parsedValue = consumeInteger(range, 0);
616 if (parsedValue) 616 if (parsedValue)
617 return parsedValue; 617 return parsedValue;
618 return consumeLength(range, cssParserMode, ValueRangeNonNegative); 618 return consumeLength(range, cssParserMode, ValueRangeNonNegative);
619 } 619 }
(...skipping 4337 matching lines...) Expand 10 before | Expand all | Expand 10 after
4957 case CSSPropertyGridTemplate: 4957 case CSSPropertyGridTemplate:
4958 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); 4958 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important);
4959 case CSSPropertyGrid: 4959 case CSSPropertyGrid:
4960 return consumeGridShorthand(important); 4960 return consumeGridShorthand(important);
4961 default: 4961 default:
4962 return false; 4962 return false;
4963 } 4963 }
4964 } 4964 }
4965 4965
4966 } // namespace blink 4966 } // 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