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

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

Issue 2783543002: Implemented parseSingleValue in CSSPropertyAPICounterIncrement. (Closed)
Patch Set: Changed CSSParserContext pointer to reference for compatibility with previous patch Created 3 years, 8 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 // 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 <memory> 7 #include <memory>
8 #include "core/StylePropertyShorthand.h" 8 #include "core/StylePropertyShorthand.h"
9 #include "core/css/CSSBasicShapeValues.h" 9 #include "core/css/CSSBasicShapeValues.h"
10 #include "core/css/CSSBorderImage.h" 10 #include "core/css/CSSBorderImage.h"
(...skipping 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1840 if (cssPropertyDesc.parseSingleValue) { 1840 if (cssPropertyDesc.parseSingleValue) {
1841 DCHECK(m_context); 1841 DCHECK(m_context);
1842 return cssPropertyDesc.parseSingleValue(m_range, *m_context); 1842 return cssPropertyDesc.parseSingleValue(m_range, *m_context);
1843 } 1843 }
1844 1844
1845 switch (property) { 1845 switch (property) {
1846 case CSSPropertyFontFeatureSettings: 1846 case CSSPropertyFontFeatureSettings:
1847 return CSSPropertyFontUtils::consumeFontFeatureSettings(m_range); 1847 return CSSPropertyFontUtils::consumeFontFeatureSettings(m_range);
1848 case CSSPropertyFontWeight: 1848 case CSSPropertyFontWeight:
1849 return CSSPropertyFontUtils::consumeFontWeight(m_range); 1849 return CSSPropertyFontUtils::consumeFontWeight(m_range);
1850 case CSSPropertyCounterIncrement:
1851 return CSSPropertyCounterUtils::consumeCounter(
1852 m_range, CSSPropertyCounterUtils::kIncrementDefaultValue);
1853 case CSSPropertyCounterReset: 1850 case CSSPropertyCounterReset:
1854 return CSSPropertyCounterUtils::consumeCounter( 1851 return CSSPropertyCounterUtils::consumeCounter(
1855 m_range, CSSPropertyCounterUtils::kResetDefaultValue); 1852 m_range, CSSPropertyCounterUtils::kResetDefaultValue);
1856 case CSSPropertyMaxWidth: 1853 case CSSPropertyMaxWidth:
1857 case CSSPropertyMaxHeight: 1854 case CSSPropertyMaxHeight:
1858 return CSSPropertyLengthUtils::consumeMaxWidthOrHeight( 1855 return CSSPropertyLengthUtils::consumeMaxWidthOrHeight(
1859 m_range, m_context, UnitlessQuirk::Allow); 1856 m_range, m_context, UnitlessQuirk::Allow);
1860 case CSSPropertyMinWidth: 1857 case CSSPropertyMinWidth:
1861 case CSSPropertyMinHeight: 1858 case CSSPropertyMinHeight:
1862 case CSSPropertyWidth: 1859 case CSSPropertyWidth:
(...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after
3600 case CSSPropertyPlaceContent: 3597 case CSSPropertyPlaceContent:
3601 return consumePlaceContentShorthand(important); 3598 return consumePlaceContentShorthand(important);
3602 case CSSPropertyPlaceItems: 3599 case CSSPropertyPlaceItems:
3603 return consumePlaceItemsShorthand(important); 3600 return consumePlaceItemsShorthand(important);
3604 default: 3601 default:
3605 return false; 3602 return false;
3606 } 3603 }
3607 } 3604 }
3608 3605
3609 } // namespace blink 3606 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698