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

Side by Side Diff: Source/core/css/CSSParser-in.cpp

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Add a test for watching dynamic attribute changes Created 7 years, 4 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
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSProperty.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 return true; 763 return true;
764 break; 764 break;
765 case CSSPropertyWebkitBoxOrient: 765 case CSSPropertyWebkitBoxOrient:
766 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis) 766 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis)
767 return true; 767 return true;
768 break; 768 break;
769 case CSSPropertyWebkitBoxPack: 769 case CSSPropertyWebkitBoxPack:
770 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS ValueCenter || valueID == CSSValueJustify) 770 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS ValueCenter || valueID == CSSValueJustify)
771 return true; 771 return true;
772 break; 772 break;
773 case CSSPropertyInternalCallback:
774 // This property is only injected programmatically, not parsed from styl esheets.
775 return false;
773 case CSSPropertyAlignContent: 776 case CSSPropertyAlignContent:
774 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || value ID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValueSp aceAround || valueID == CSSValueStretch) 777 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || value ID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValueSp aceAround || valueID == CSSValueStretch)
775 return true; 778 return true;
776 break; 779 break;
777 case CSSPropertyAlignItems: 780 case CSSPropertyAlignItems:
778 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueI D == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch ) 781 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueI D == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch )
779 return true; 782 return true;
780 break; 783 break;
781 case CSSPropertyAlignSelf: 784 case CSSPropertyAlignSelf:
782 if (valueID == CSSValueAuto || valueID == CSSValueFlexStart || valueID = = CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch) 785 if (valueID == CSSValueAuto || valueID == CSSValueFlexStart || valueID = = CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch)
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 case CSSPropertyWebkitBorderBeforeStyle: 976 case CSSPropertyWebkitBorderBeforeStyle:
974 case CSSPropertyWebkitBorderEndStyle: 977 case CSSPropertyWebkitBorderEndStyle:
975 case CSSPropertyWebkitBorderFit: 978 case CSSPropertyWebkitBorderFit:
976 case CSSPropertyWebkitBorderStartStyle: 979 case CSSPropertyWebkitBorderStartStyle:
977 case CSSPropertyWebkitBoxAlign: 980 case CSSPropertyWebkitBoxAlign:
978 case CSSPropertyWebkitBoxDecorationBreak: 981 case CSSPropertyWebkitBoxDecorationBreak:
979 case CSSPropertyWebkitBoxDirection: 982 case CSSPropertyWebkitBoxDirection:
980 case CSSPropertyWebkitBoxLines: 983 case CSSPropertyWebkitBoxLines:
981 case CSSPropertyWebkitBoxOrient: 984 case CSSPropertyWebkitBoxOrient:
982 case CSSPropertyWebkitBoxPack: 985 case CSSPropertyWebkitBoxPack:
986 case CSSPropertyInternalCallback:
983 case CSSPropertyWebkitColumnBreakAfter: 987 case CSSPropertyWebkitColumnBreakAfter:
984 case CSSPropertyWebkitColumnBreakBefore: 988 case CSSPropertyWebkitColumnBreakBefore:
985 case CSSPropertyWebkitColumnBreakInside: 989 case CSSPropertyWebkitColumnBreakInside:
986 case CSSPropertyWebkitColumnRuleStyle: 990 case CSSPropertyWebkitColumnRuleStyle:
987 case CSSPropertyAlignContent: 991 case CSSPropertyAlignContent:
988 case CSSPropertyAlignItems: 992 case CSSPropertyAlignItems:
989 case CSSPropertyAlignSelf: 993 case CSSPropertyAlignSelf:
990 case CSSPropertyFlexDirection: 994 case CSSPropertyFlexDirection:
991 case CSSPropertyFlexWrap: 995 case CSSPropertyFlexWrap:
992 case CSSPropertyJustifyContent: 996 case CSSPropertyJustifyContent:
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after
2777 case CSSPropertyWebkitBorderBeforeStyle: 2781 case CSSPropertyWebkitBorderBeforeStyle:
2778 case CSSPropertyWebkitBorderEndStyle: 2782 case CSSPropertyWebkitBorderEndStyle:
2779 case CSSPropertyWebkitBorderFit: 2783 case CSSPropertyWebkitBorderFit:
2780 case CSSPropertyWebkitBorderStartStyle: 2784 case CSSPropertyWebkitBorderStartStyle:
2781 case CSSPropertyWebkitBoxAlign: 2785 case CSSPropertyWebkitBoxAlign:
2782 case CSSPropertyWebkitBoxDecorationBreak: 2786 case CSSPropertyWebkitBoxDecorationBreak:
2783 case CSSPropertyWebkitBoxDirection: 2787 case CSSPropertyWebkitBoxDirection:
2784 case CSSPropertyWebkitBoxLines: 2788 case CSSPropertyWebkitBoxLines:
2785 case CSSPropertyWebkitBoxOrient: 2789 case CSSPropertyWebkitBoxOrient:
2786 case CSSPropertyWebkitBoxPack: 2790 case CSSPropertyWebkitBoxPack:
2791 case CSSPropertyInternalCallback:
2787 case CSSPropertyWebkitColumnBreakAfter: 2792 case CSSPropertyWebkitColumnBreakAfter:
2788 case CSSPropertyWebkitColumnBreakBefore: 2793 case CSSPropertyWebkitColumnBreakBefore:
2789 case CSSPropertyWebkitColumnBreakInside: 2794 case CSSPropertyWebkitColumnBreakInside:
2790 case CSSPropertyWebkitColumnRuleStyle: 2795 case CSSPropertyWebkitColumnRuleStyle:
2791 case CSSPropertyAlignContent: 2796 case CSSPropertyAlignContent:
2792 case CSSPropertyAlignItems: 2797 case CSSPropertyAlignItems:
2793 case CSSPropertyAlignSelf: 2798 case CSSPropertyAlignSelf:
2794 case CSSPropertyFlexDirection: 2799 case CSSPropertyFlexDirection:
2795 case CSSPropertyFlexWrap: 2800 case CSSPropertyFlexWrap:
2796 case CSSPropertyJustifyContent: 2801 case CSSPropertyJustifyContent:
(...skipping 9123 matching lines...) Expand 10 before | Expand all | Expand 10 after
11920 { 11925 {
11921 // The tokenizer checks for the construct of an+b. 11926 // The tokenizer checks for the construct of an+b.
11922 // However, since the {ident} rule precedes the {nth} rule, some of those 11927 // However, since the {ident} rule precedes the {nth} rule, some of those
11923 // tokens are identified as string literal. Furthermore we need to accept 11928 // tokens are identified as string literal. Furthermore we need to accept
11924 // "odd" and "even" which does not match to an+b. 11929 // "odd" and "even" which does not match to an+b.
11925 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") 11930 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even")
11926 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); 11931 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n");
11927 } 11932 }
11928 11933
11929 } 11934 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSProperty.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698