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

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: Improved check Created 5 years, 6 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 id = CSSValuePointer; 666 id = CSSValuePointer;
667 validPrimitive = true; 667 validPrimitive = true;
668 } else if ((value->id >= CSSValueAuto && value->id <= CSSValueWebkit ZoomOut) || value->id == CSSValueCopy || value->id == CSSValueNone) 668 } else if ((value->id >= CSSValueAuto && value->id <= CSSValueWebkit ZoomOut) || value->id == CSSValueCopy || value->id == CSSValueNone)
669 validPrimitive = true; 669 validPrimitive = true;
670 } else { 670 } else {
671 ASSERT_NOT_REACHED(); 671 ASSERT_NOT_REACHED();
672 return false; 672 return false;
673 } 673 }
674 break; 674 break;
675 } 675 }
676 case CSSPropertyImageOrientation:
677 validPrimitive = value->id == CSSValueFromImage || (value->unit != CSSPr imitiveValue::CSS_NUMBER && validUnit(value, FAngle) && value->fValue == 0);
678 break;
676 679
677 case CSSPropertyBackgroundBlendMode: 680 case CSSPropertyBackgroundBlendMode:
678 case CSSPropertyBackgroundAttachment: 681 case CSSPropertyBackgroundAttachment:
679 case CSSPropertyBackgroundClip: 682 case CSSPropertyBackgroundClip:
680 case CSSPropertyWebkitBackgroundClip: 683 case CSSPropertyWebkitBackgroundClip:
681 case CSSPropertyWebkitBackgroundComposite: 684 case CSSPropertyWebkitBackgroundComposite:
682 case CSSPropertyBackgroundImage: 685 case CSSPropertyBackgroundImage:
683 case CSSPropertyBackgroundOrigin: 686 case CSSPropertyBackgroundOrigin:
684 case CSSPropertyMaskSourceType: 687 case CSSPropertyMaskSourceType:
685 case CSSPropertyWebkitBackgroundOrigin: 688 case CSSPropertyWebkitBackgroundOrigin:
(...skipping 7504 matching lines...) Expand 10 before | Expand all | Expand 10 after
8190 } 8193 }
8191 } 8194 }
8192 8195
8193 if (!list->length()) 8196 if (!list->length())
8194 return nullptr; 8197 return nullptr;
8195 8198
8196 return list.release(); 8199 return list.release();
8197 } 8200 }
8198 8201
8199 } // namespace blink 8202 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698