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

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

Issue 2522443002: Remove SVGCursorElement (Closed)
Patch Set: Rebase Created 4 years 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 "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 2100 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 if (!consumeNumberRaw(range, num)) 2111 if (!consumeNumberRaw(range, num))
2112 return nullptr; 2112 return nullptr;
2113 hotSpot.setY(int(num)); 2113 hotSpot.setY(int(num));
2114 hotSpotSpecified = true; 2114 hotSpotSpecified = true;
2115 } 2115 }
2116 2116
2117 if (!list) 2117 if (!list)
2118 list = CSSValueList::createCommaSeparated(); 2118 list = CSSValueList::createCommaSeparated();
2119 2119
2120 list->append( 2120 list->append(
2121 *CSSCursorImageValue::create(image, hotSpotSpecified, hotSpot)); 2121 *CSSCursorImageValue::create(*image, hotSpotSpecified, hotSpot));
2122 if (!consumeCommaIncludingWhitespace(range)) 2122 if (!consumeCommaIncludingWhitespace(range))
2123 return nullptr; 2123 return nullptr;
2124 } 2124 }
2125 2125
2126 CSSValueID id = range.peek().id(); 2126 CSSValueID id = range.peek().id();
2127 if (!range.atEnd() && context.useCounter()) { 2127 if (!range.atEnd() && context.useCounter()) {
2128 if (id == CSSValueWebkitZoomIn) 2128 if (id == CSSValueWebkitZoomIn)
2129 context.useCounter()->count(UseCounter::PrefixedCursorZoomIn); 2129 context.useCounter()->count(UseCounter::PrefixedCursorZoomIn);
2130 else if (id == CSSValueWebkitZoomOut) 2130 else if (id == CSSValueWebkitZoomOut)
2131 context.useCounter()->count(UseCounter::PrefixedCursorZoomOut); 2131 context.useCounter()->count(UseCounter::PrefixedCursorZoomOut);
(...skipping 3240 matching lines...) Expand 10 before | Expand all | Expand 10 after
5372 case CSSPropertyGridTemplate: 5372 case CSSPropertyGridTemplate:
5373 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); 5373 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important);
5374 case CSSPropertyGrid: 5374 case CSSPropertyGrid:
5375 return consumeGridShorthand(important); 5375 return consumeGridShorthand(important);
5376 default: 5376 default:
5377 return false; 5377 return false;
5378 } 5378 }
5379 } 5379 }
5380 5380
5381 } // namespace blink 5381 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698