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

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

Issue 1162793003: Add CSS image-orientation: from-image (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add runtime flag Created 5 years, 5 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 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 id = CSSValuePointer; 638 id = CSSValuePointer;
639 validPrimitive = true; 639 validPrimitive = true;
640 } else if ((value->id >= CSSValueAuto && value->id <= CSSValueWebkit ZoomOut) || value->id == CSSValueCopy || value->id == CSSValueNone) 640 } else if ((value->id >= CSSValueAuto && value->id <= CSSValueWebkit ZoomOut) || value->id == CSSValueCopy || value->id == CSSValueNone)
641 validPrimitive = true; 641 validPrimitive = true;
642 } else { 642 } else {
643 ASSERT_NOT_REACHED(); 643 ASSERT_NOT_REACHED();
644 return false; 644 return false;
645 } 645 }
646 break; 646 break;
647 } 647 }
648 case CSSPropertyImageOrientation:
649 if (RuntimeEnabledFeatures::imageOrientationEnabled())
650 validPrimitive = value->id == CSSValueFromImage || (value->unit != C SSPrimitiveValue::CSS_NUMBER && validUnit(value, FAngle) && value->fValue == 0);
651 break;
648 652
649 case CSSPropertyBackgroundBlendMode: 653 case CSSPropertyBackgroundBlendMode:
650 case CSSPropertyBackgroundAttachment: 654 case CSSPropertyBackgroundAttachment:
651 case CSSPropertyBackgroundClip: 655 case CSSPropertyBackgroundClip:
652 case CSSPropertyWebkitBackgroundClip: 656 case CSSPropertyWebkitBackgroundClip:
653 case CSSPropertyWebkitBackgroundComposite: 657 case CSSPropertyWebkitBackgroundComposite:
654 case CSSPropertyBackgroundImage: 658 case CSSPropertyBackgroundImage:
655 case CSSPropertyBackgroundOrigin: 659 case CSSPropertyBackgroundOrigin:
656 case CSSPropertyMaskSourceType: 660 case CSSPropertyMaskSourceType:
657 case CSSPropertyWebkitBackgroundOrigin: 661 case CSSPropertyWebkitBackgroundOrigin:
(...skipping 7574 matching lines...) Expand 10 before | Expand all | Expand 10 after
8232 } 8236 }
8233 } 8237 }
8234 8238
8235 if (!list->length()) 8239 if (!list->length())
8236 return nullptr; 8240 return nullptr;
8237 8241
8238 return list.release(); 8242 return list.release();
8239 } 8243 }
8240 8244
8241 } // namespace blink 8245 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698