OLD | NEW |
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 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1996 validPrimitive = true; | 1996 validPrimitive = true; |
1997 } else if ((value->id >= CSSValueAuto && value->id <= CSSValueWebkit
Grabbing) || value->id == CSSValueCopy || value->id == CSSValueNone) | 1997 } else if ((value->id >= CSSValueAuto && value->id <= CSSValueWebkit
Grabbing) || value->id == CSSValueCopy || value->id == CSSValueNone) |
1998 validPrimitive = true; | 1998 validPrimitive = true; |
1999 } else { | 1999 } else { |
2000 ASSERT_NOT_REACHED(); | 2000 ASSERT_NOT_REACHED(); |
2001 return false; | 2001 return false; |
2002 } | 2002 } |
2003 break; | 2003 break; |
2004 } | 2004 } |
2005 | 2005 |
2006 #if ENABLE(CURSOR_VISIBILITY) | |
2007 case CSSPropertyWebkitCursorVisibility: | |
2008 if (id == CSSValueAuto || id == CSSValueAutoHide) | |
2009 validPrimitive = true; | |
2010 break; | |
2011 #endif | |
2012 | |
2013 case CSSPropertyBackgroundAttachment: | 2006 case CSSPropertyBackgroundAttachment: |
2014 #if ENABLE(CSS_COMPOSITING) | 2007 #if ENABLE(CSS_COMPOSITING) |
2015 case CSSPropertyBackgroundBlendMode: | 2008 case CSSPropertyBackgroundBlendMode: |
2016 #endif | 2009 #endif |
2017 case CSSPropertyBackgroundClip: | 2010 case CSSPropertyBackgroundClip: |
2018 case CSSPropertyWebkitBackgroundClip: | 2011 case CSSPropertyWebkitBackgroundClip: |
2019 case CSSPropertyWebkitBackgroundComposite: | 2012 case CSSPropertyWebkitBackgroundComposite: |
2020 case CSSPropertyBackgroundImage: | 2013 case CSSPropertyBackgroundImage: |
2021 case CSSPropertyBackgroundOrigin: | 2014 case CSSPropertyBackgroundOrigin: |
2022 case CSSPropertyWebkitBackgroundOrigin: | 2015 case CSSPropertyWebkitBackgroundOrigin: |
(...skipping 9737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11760 { | 11753 { |
11761 // The tokenizer checks for the construct of an+b. | 11754 // The tokenizer checks for the construct of an+b. |
11762 // However, since the {ident} rule precedes the {nth} rule, some of those | 11755 // However, since the {ident} rule precedes the {nth} rule, some of those |
11763 // tokens are identified as string literal. Furthermore we need to accept | 11756 // tokens are identified as string literal. Furthermore we need to accept |
11764 // "odd" and "even" which does not match to an+b. | 11757 // "odd" and "even" which does not match to an+b. |
11765 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 11758 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
11766 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 11759 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
11767 } | 11760 } |
11768 | 11761 |
11769 } | 11762 } |
OLD | NEW |