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

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

Issue 2828503002: CSS Motion Path: delete implementation of motion shorthand (Closed)
Patch Set: test update 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 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 case CSSPropertyTextDecoration: 1944 case CSSPropertyTextDecoration:
1945 DCHECK(!RuntimeEnabledFeatures::css3TextDecorationsEnabled()); 1945 DCHECK(!RuntimeEnabledFeatures::css3TextDecorationsEnabled());
1946 // fallthrough 1946 // fallthrough
1947 case CSSPropertyWebkitTextDecorationsInEffect: 1947 case CSSPropertyWebkitTextDecorationsInEffect:
1948 case CSSPropertyTextDecorationLine: 1948 case CSSPropertyTextDecorationLine:
1949 return ConsumeTextDecorationLine(range_); 1949 return ConsumeTextDecorationLine(range_);
1950 case CSSPropertyD: 1950 case CSSPropertyD:
1951 return ConsumePathOrNone(range_); 1951 return ConsumePathOrNone(range_);
1952 case CSSPropertyOffsetPath: 1952 case CSSPropertyOffsetPath:
1953 return ConsumeOffsetPath( 1953 return ConsumeOffsetPath(
1954 range_, context_, 1954 range_, context_, unresolved_property == CSSPropertyAliasMotionPath);
1955 current_shorthand == CSSPropertyMotion ||
1956 unresolved_property == CSSPropertyAliasMotionPath);
1957 case CSSPropertyOffsetDistance: 1955 case CSSPropertyOffsetDistance:
1958 return ConsumeLengthOrPercent(range_, context_->Mode(), kValueRangeAll); 1956 return ConsumeLengthOrPercent(range_, context_->Mode(), kValueRangeAll);
1959 case CSSPropertyOffsetRotate: 1957 case CSSPropertyOffsetRotate:
1960 case CSSPropertyOffsetRotation: 1958 case CSSPropertyOffsetRotation:
1961 return ConsumeOffsetRotate(range_); 1959 return ConsumeOffsetRotate(range_);
1962 case CSSPropertyTransform: 1960 case CSSPropertyTransform:
1963 return ConsumeTransform( 1961 return ConsumeTransform(
1964 range_, context_, 1962 range_, context_,
1965 unresolved_property == CSSPropertyAliasWebkitTransform); 1963 unresolved_property == CSSPropertyAliasWebkitTransform);
1966 case CSSPropertyWebkitTransformOriginX: 1964 case CSSPropertyWebkitTransformOriginX:
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after
3471 case CSSPropertyTransition: 3469 case CSSPropertyTransition:
3472 return ConsumeAnimationShorthand(transitionShorthandForParsing(), false, 3470 return ConsumeAnimationShorthand(transitionShorthandForParsing(), false,
3473 important); 3471 important);
3474 case CSSPropertyTextDecoration: 3472 case CSSPropertyTextDecoration:
3475 DCHECK(RuntimeEnabledFeatures::css3TextDecorationsEnabled()); 3473 DCHECK(RuntimeEnabledFeatures::css3TextDecorationsEnabled());
3476 return ConsumeShorthandGreedily(textDecorationShorthand(), important); 3474 return ConsumeShorthandGreedily(textDecorationShorthand(), important);
3477 case CSSPropertyMargin: 3475 case CSSPropertyMargin:
3478 return Consume4Values(marginShorthand(), important); 3476 return Consume4Values(marginShorthand(), important);
3479 case CSSPropertyPadding: 3477 case CSSPropertyPadding:
3480 return Consume4Values(paddingShorthand(), important); 3478 return Consume4Values(paddingShorthand(), important);
3481 case CSSPropertyMotion:
3482 return ConsumeShorthandGreedily(motionShorthand(), important);
3483 case CSSPropertyOffset: 3479 case CSSPropertyOffset:
3484 return ConsumeOffsetShorthand(important); 3480 return ConsumeOffsetShorthand(important);
3485 case CSSPropertyWebkitTextEmphasis: 3481 case CSSPropertyWebkitTextEmphasis:
3486 return ConsumeShorthandGreedily(webkitTextEmphasisShorthand(), important); 3482 return ConsumeShorthandGreedily(webkitTextEmphasisShorthand(), important);
3487 case CSSPropertyOutline: 3483 case CSSPropertyOutline:
3488 return ConsumeShorthandGreedily(outlineShorthand(), important); 3484 return ConsumeShorthandGreedily(outlineShorthand(), important);
3489 case CSSPropertyWebkitBorderStart: 3485 case CSSPropertyWebkitBorderStart:
3490 return ConsumeShorthandGreedily(webkitBorderStartShorthand(), important); 3486 return ConsumeShorthandGreedily(webkitBorderStartShorthand(), important);
3491 case CSSPropertyWebkitBorderEnd: 3487 case CSSPropertyWebkitBorderEnd:
3492 return ConsumeShorthandGreedily(webkitBorderEndShorthand(), important); 3488 return ConsumeShorthandGreedily(webkitBorderEndShorthand(), important);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
3636 case CSSPropertyPlaceItems: 3632 case CSSPropertyPlaceItems:
3637 return ConsumePlaceItemsShorthand(important); 3633 return ConsumePlaceItemsShorthand(important);
3638 case CSSPropertyPlaceSelf: 3634 case CSSPropertyPlaceSelf:
3639 return ConsumePlaceSelfShorthand(important); 3635 return ConsumePlaceSelfShorthand(important);
3640 default: 3636 default:
3641 return false; 3637 return false;
3642 } 3638 }
3643 } 3639 }
3644 3640
3645 } // namespace blink 3641 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StylePropertySerializer.cpp ('k') | third_party/WebKit/Source/core/frame/Deprecation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698