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

Side by Side Diff: sky/engine/core/css/parser/CSSPropertyParser.cpp

Issue 1068073002: drop 'orphan' property (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fix ojan's comments Created 5 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 /* 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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 case CSSPropertyWebkitMarginStart: 769 case CSSPropertyWebkitMarginStart:
770 case CSSPropertyWebkitMarginEnd: 770 case CSSPropertyWebkitMarginEnd:
771 case CSSPropertyWebkitMarginBefore: 771 case CSSPropertyWebkitMarginBefore:
772 case CSSPropertyWebkitMarginAfter: 772 case CSSPropertyWebkitMarginAfter:
773 if (id == CSSValueAuto) 773 if (id == CSSValueAuto)
774 validPrimitive = true; 774 validPrimitive = true;
775 else 775 else
776 validPrimitive = (!id && validUnit(value, FLength | FPercent)); 776 validPrimitive = (!id && validUnit(value, FLength | FPercent));
777 break; 777 break;
778 778
779 case CSSPropertyOrphans: // <integer> | inherit | auto (We've added support for auto for backwards compatibility)
780 case CSSPropertyWidows: // <integer> | inherit | auto (Ditto) 779 case CSSPropertyWidows: // <integer> | inherit | auto (Ditto)
781 if (id == CSSValueAuto) 780 if (id == CSSValueAuto)
782 validPrimitive = true; 781 validPrimitive = true;
783 else 782 else
784 validPrimitive = (!id && validUnit(value, FPositiveInteger)); 783 validPrimitive = (!id && validUnit(value, FPositiveInteger));
785 break; 784 break;
786 785
787 case CSSPropertyZIndex: // auto | <integer> | inherit 786 case CSSPropertyZIndex: // auto | <integer> | inherit
788 if (id == CSSValueAuto) 787 if (id == CSSValueAuto)
789 validPrimitive = true; 788 validPrimitive = true;
(...skipping 5242 matching lines...) Expand 10 before | Expand all | Expand 10 after
6032 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); 6031 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n");
6033 } 6032 }
6034 6033
6035 bool CSSPropertyParser::isSystemColor(int id) 6034 bool CSSPropertyParser::isSystemColor(int id)
6036 { 6035 {
6037 // FIXME(sky): remove 6036 // FIXME(sky): remove
6038 return false; 6037 return false;
6039 } 6038 }
6040 6039
6041 } // namespace blink 6040 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/StylePropertySet.cpp ('k') | sky/engine/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698