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

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

Issue 1078943002: remove 'widows' property because paged media support is gone so this does nothing now (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 case CSSPropertyWebkitMarginStart: 695 case CSSPropertyWebkitMarginStart:
696 case CSSPropertyWebkitMarginEnd: 696 case CSSPropertyWebkitMarginEnd:
697 case CSSPropertyWebkitMarginBefore: 697 case CSSPropertyWebkitMarginBefore:
698 case CSSPropertyWebkitMarginAfter: 698 case CSSPropertyWebkitMarginAfter:
699 if (id == CSSValueAuto) 699 if (id == CSSValueAuto)
700 validPrimitive = true; 700 validPrimitive = true;
701 else 701 else
702 validPrimitive = (!id && validUnit(value, FLength | FPercent)); 702 validPrimitive = (!id && validUnit(value, FLength | FPercent));
703 break; 703 break;
704 704
705 case CSSPropertyWidows: // <integer> | inherit | auto (Ditto)
706 if (id == CSSValueAuto)
707 validPrimitive = true;
708 else
709 validPrimitive = (!id && validUnit(value, FPositiveInteger));
710 break;
711
712 case CSSPropertyZIndex: // auto | <integer> | inherit 705 case CSSPropertyZIndex: // auto | <integer> | inherit
713 if (id == CSSValueAuto) 706 if (id == CSSValueAuto)
714 validPrimitive = true; 707 validPrimitive = true;
715 else 708 else
716 validPrimitive = (!id && validUnit(value, FInteger)); 709 validPrimitive = (!id && validUnit(value, FInteger));
717 break; 710 break;
718 711
719 case CSSPropertyLineHeight: 712 case CSSPropertyLineHeight:
720 return parseLineHeight(); 713 return parseLineHeight();
721 case CSSPropertyFontFamily: 714 case CSSPropertyFontFamily:
(...skipping 5233 matching lines...) Expand 10 before | Expand all | Expand 10 after
5955 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); 5948 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n");
5956 } 5949 }
5957 5950
5958 bool CSSPropertyParser::isSystemColor(int id) 5951 bool CSSPropertyParser::isSystemColor(int id)
5959 { 5952 {
5960 // FIXME(sky): remove 5953 // FIXME(sky): remove
5961 return false; 5954 return false;
5962 } 5955 }
5963 5956
5964 } // namespace blink 5957 } // 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