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

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: Initial Created 7 years, 5 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 return true; 755 return true;
756 break; 756 break;
757 case CSSPropertyWebkitBoxOrient: 757 case CSSPropertyWebkitBoxOrient:
758 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis) 758 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis)
759 return true; 759 return true;
760 break; 760 break;
761 case CSSPropertyWebkitBoxPack: 761 case CSSPropertyWebkitBoxPack:
762 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS ValueCenter || valueID == CSSValueJustify) 762 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS ValueCenter || valueID == CSSValueJustify)
763 return true; 763 return true;
764 break; 764 break;
765 #if ENABLE(CSS_CALLBACKS)
766 case CSSPropertyInternalCallback:
767 // This property is only injected programmatically, not parsed from styl esheets.
768 return false;
769 #endif
765 case CSSPropertyAlignContent: 770 case CSSPropertyAlignContent:
766 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || value ID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValueSp aceAround || valueID == CSSValueStretch) 771 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || value ID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValueSp aceAround || valueID == CSSValueStretch)
767 return true; 772 return true;
768 break; 773 break;
769 case CSSPropertyAlignItems: 774 case CSSPropertyAlignItems:
770 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueI D == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch ) 775 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueI D == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch )
771 return true; 776 return true;
772 break; 777 break;
773 case CSSPropertyAlignSelf: 778 case CSSPropertyAlignSelf:
774 if (valueID == CSSValueAuto || valueID == CSSValueFlexStart || valueID = = CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch) 779 if (valueID == CSSValueAuto || valueID == CSSValueFlexStart || valueID = = CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch)
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 case CSSPropertyWebkitBorderBeforeStyle: 979 case CSSPropertyWebkitBorderBeforeStyle:
975 case CSSPropertyWebkitBorderEndStyle: 980 case CSSPropertyWebkitBorderEndStyle:
976 case CSSPropertyWebkitBorderFit: 981 case CSSPropertyWebkitBorderFit:
977 case CSSPropertyWebkitBorderStartStyle: 982 case CSSPropertyWebkitBorderStartStyle:
978 case CSSPropertyWebkitBoxAlign: 983 case CSSPropertyWebkitBoxAlign:
979 case CSSPropertyWebkitBoxDecorationBreak: 984 case CSSPropertyWebkitBoxDecorationBreak:
980 case CSSPropertyWebkitBoxDirection: 985 case CSSPropertyWebkitBoxDirection:
981 case CSSPropertyWebkitBoxLines: 986 case CSSPropertyWebkitBoxLines:
982 case CSSPropertyWebkitBoxOrient: 987 case CSSPropertyWebkitBoxOrient:
983 case CSSPropertyWebkitBoxPack: 988 case CSSPropertyWebkitBoxPack:
989 #if ENABLE(CSS_CALLBACKS)
990 case CSSPropertyInternalCallback:
991 #endif
984 case CSSPropertyWebkitColumnBreakAfter: 992 case CSSPropertyWebkitColumnBreakAfter:
985 case CSSPropertyWebkitColumnBreakBefore: 993 case CSSPropertyWebkitColumnBreakBefore:
986 case CSSPropertyWebkitColumnBreakInside: 994 case CSSPropertyWebkitColumnBreakInside:
987 case CSSPropertyWebkitColumnRuleStyle: 995 case CSSPropertyWebkitColumnRuleStyle:
988 case CSSPropertyAlignContent: 996 case CSSPropertyAlignContent:
989 case CSSPropertyAlignItems: 997 case CSSPropertyAlignItems:
990 case CSSPropertyAlignSelf: 998 case CSSPropertyAlignSelf:
991 case CSSPropertyFlexDirection: 999 case CSSPropertyFlexDirection:
992 case CSSPropertyFlexWrap: 1000 case CSSPropertyFlexWrap:
993 case CSSPropertyJustifyContent: 1001 case CSSPropertyJustifyContent:
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after
2784 case CSSPropertyWebkitBorderBeforeStyle: 2792 case CSSPropertyWebkitBorderBeforeStyle:
2785 case CSSPropertyWebkitBorderEndStyle: 2793 case CSSPropertyWebkitBorderEndStyle:
2786 case CSSPropertyWebkitBorderFit: 2794 case CSSPropertyWebkitBorderFit:
2787 case CSSPropertyWebkitBorderStartStyle: 2795 case CSSPropertyWebkitBorderStartStyle:
2788 case CSSPropertyWebkitBoxAlign: 2796 case CSSPropertyWebkitBoxAlign:
2789 case CSSPropertyWebkitBoxDecorationBreak: 2797 case CSSPropertyWebkitBoxDecorationBreak:
2790 case CSSPropertyWebkitBoxDirection: 2798 case CSSPropertyWebkitBoxDirection:
2791 case CSSPropertyWebkitBoxLines: 2799 case CSSPropertyWebkitBoxLines:
2792 case CSSPropertyWebkitBoxOrient: 2800 case CSSPropertyWebkitBoxOrient:
2793 case CSSPropertyWebkitBoxPack: 2801 case CSSPropertyWebkitBoxPack:
2802 #if ENABLE(CSS_CALLBACKS)
2803 case CSSPropertyInternalCallback:
2804 #endif
2794 case CSSPropertyWebkitColumnBreakAfter: 2805 case CSSPropertyWebkitColumnBreakAfter:
2795 case CSSPropertyWebkitColumnBreakBefore: 2806 case CSSPropertyWebkitColumnBreakBefore:
2796 case CSSPropertyWebkitColumnBreakInside: 2807 case CSSPropertyWebkitColumnBreakInside:
2797 case CSSPropertyWebkitColumnRuleStyle: 2808 case CSSPropertyWebkitColumnRuleStyle:
2798 case CSSPropertyAlignContent: 2809 case CSSPropertyAlignContent:
2799 case CSSPropertyAlignItems: 2810 case CSSPropertyAlignItems:
2800 case CSSPropertyAlignSelf: 2811 case CSSPropertyAlignSelf:
2801 case CSSPropertyFlexDirection: 2812 case CSSPropertyFlexDirection:
2802 case CSSPropertyFlexWrap: 2813 case CSSPropertyFlexWrap:
2803 case CSSPropertyJustifyContent: 2814 case CSSPropertyJustifyContent:
(...skipping 8917 matching lines...) Expand 10 before | Expand all | Expand 10 after
11721 { 11732 {
11722 // The tokenizer checks for the construct of an+b. 11733 // The tokenizer checks for the construct of an+b.
11723 // However, since the {ident} rule precedes the {nth} rule, some of those 11734 // However, since the {ident} rule precedes the {nth} rule, some of those
11724 // tokens are identified as string literal. Furthermore we need to accept 11735 // tokens are identified as string literal. Furthermore we need to accept
11725 // "odd" and "even" which does not match to an+b. 11736 // "odd" and "even" which does not match to an+b.
11726 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") 11737 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even")
11727 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); 11738 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n");
11728 } 11739 }
11729 11740
11730 } 11741 }
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