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

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: Omit split CLs 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
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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 return true; 761 return true;
762 break; 762 break;
763 case CSSPropertyWebkitBoxOrient: 763 case CSSPropertyWebkitBoxOrient:
764 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis) 764 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis)
765 return true; 765 return true;
766 break; 766 break;
767 case CSSPropertyWebkitBoxPack: 767 case CSSPropertyWebkitBoxPack:
768 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS ValueCenter || valueID == CSSValueJustify) 768 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS ValueCenter || valueID == CSSValueJustify)
769 return true; 769 return true;
770 break; 770 break;
771 #if ENABLE(CSS_CALLBACKS)
772 case CSSPropertyInternalCallback:
773 // This property is only injected programmatically, not parsed from styl esheets.
774 return false;
775 #endif
771 case CSSPropertyAlignContent: 776 case CSSPropertyAlignContent:
772 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)
773 return true; 778 return true;
774 break; 779 break;
775 case CSSPropertyAlignItems: 780 case CSSPropertyAlignItems:
776 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 )
777 return true; 782 return true;
778 break; 783 break;
779 case CSSPropertyAlignSelf: 784 case CSSPropertyAlignSelf:
780 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 case CSSPropertyWebkitBorderBeforeStyle: 980 case CSSPropertyWebkitBorderBeforeStyle:
976 case CSSPropertyWebkitBorderEndStyle: 981 case CSSPropertyWebkitBorderEndStyle:
977 case CSSPropertyWebkitBorderFit: 982 case CSSPropertyWebkitBorderFit:
978 case CSSPropertyWebkitBorderStartStyle: 983 case CSSPropertyWebkitBorderStartStyle:
979 case CSSPropertyWebkitBoxAlign: 984 case CSSPropertyWebkitBoxAlign:
980 case CSSPropertyWebkitBoxDecorationBreak: 985 case CSSPropertyWebkitBoxDecorationBreak:
981 case CSSPropertyWebkitBoxDirection: 986 case CSSPropertyWebkitBoxDirection:
982 case CSSPropertyWebkitBoxLines: 987 case CSSPropertyWebkitBoxLines:
983 case CSSPropertyWebkitBoxOrient: 988 case CSSPropertyWebkitBoxOrient:
984 case CSSPropertyWebkitBoxPack: 989 case CSSPropertyWebkitBoxPack:
990 #if ENABLE(CSS_CALLBACKS)
991 case CSSPropertyInternalCallback:
992 #endif
985 case CSSPropertyWebkitColumnBreakAfter: 993 case CSSPropertyWebkitColumnBreakAfter:
986 case CSSPropertyWebkitColumnBreakBefore: 994 case CSSPropertyWebkitColumnBreakBefore:
987 case CSSPropertyWebkitColumnBreakInside: 995 case CSSPropertyWebkitColumnBreakInside:
988 case CSSPropertyWebkitColumnRuleStyle: 996 case CSSPropertyWebkitColumnRuleStyle:
989 case CSSPropertyAlignContent: 997 case CSSPropertyAlignContent:
990 case CSSPropertyAlignItems: 998 case CSSPropertyAlignItems:
991 case CSSPropertyAlignSelf: 999 case CSSPropertyAlignSelf:
992 case CSSPropertyFlexDirection: 1000 case CSSPropertyFlexDirection:
993 case CSSPropertyFlexWrap: 1001 case CSSPropertyFlexWrap:
994 case CSSPropertyJustifyContent: 1002 case CSSPropertyJustifyContent:
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2783 case CSSPropertyWebkitBorderBeforeStyle: 2791 case CSSPropertyWebkitBorderBeforeStyle:
2784 case CSSPropertyWebkitBorderEndStyle: 2792 case CSSPropertyWebkitBorderEndStyle:
2785 case CSSPropertyWebkitBorderFit: 2793 case CSSPropertyWebkitBorderFit:
2786 case CSSPropertyWebkitBorderStartStyle: 2794 case CSSPropertyWebkitBorderStartStyle:
2787 case CSSPropertyWebkitBoxAlign: 2795 case CSSPropertyWebkitBoxAlign:
2788 case CSSPropertyWebkitBoxDecorationBreak: 2796 case CSSPropertyWebkitBoxDecorationBreak:
2789 case CSSPropertyWebkitBoxDirection: 2797 case CSSPropertyWebkitBoxDirection:
2790 case CSSPropertyWebkitBoxLines: 2798 case CSSPropertyWebkitBoxLines:
2791 case CSSPropertyWebkitBoxOrient: 2799 case CSSPropertyWebkitBoxOrient:
2792 case CSSPropertyWebkitBoxPack: 2800 case CSSPropertyWebkitBoxPack:
2801 #if ENABLE(CSS_CALLBACKS)
2802 case CSSPropertyInternalCallback:
2803 #endif
2793 case CSSPropertyWebkitColumnBreakAfter: 2804 case CSSPropertyWebkitColumnBreakAfter:
2794 case CSSPropertyWebkitColumnBreakBefore: 2805 case CSSPropertyWebkitColumnBreakBefore:
2795 case CSSPropertyWebkitColumnBreakInside: 2806 case CSSPropertyWebkitColumnBreakInside:
2796 case CSSPropertyWebkitColumnRuleStyle: 2807 case CSSPropertyWebkitColumnRuleStyle:
2797 case CSSPropertyAlignContent: 2808 case CSSPropertyAlignContent:
2798 case CSSPropertyAlignItems: 2809 case CSSPropertyAlignItems:
2799 case CSSPropertyAlignSelf: 2810 case CSSPropertyAlignSelf:
2800 case CSSPropertyFlexDirection: 2811 case CSSPropertyFlexDirection:
2801 case CSSPropertyFlexWrap: 2812 case CSSPropertyFlexWrap:
2802 case CSSPropertyJustifyContent: 2813 case CSSPropertyJustifyContent:
(...skipping 8914 matching lines...) Expand 10 before | Expand all | Expand 10 after
11717 { 11728 {
11718 // The tokenizer checks for the construct of an+b. 11729 // The tokenizer checks for the construct of an+b.
11719 // However, since the {ident} rule precedes the {nth} rule, some of those 11730 // However, since the {ident} rule precedes the {nth} rule, some of those
11720 // tokens are identified as string literal. Furthermore we need to accept 11731 // tokens are identified as string literal. Furthermore we need to accept
11721 // "odd" and "even" which does not match to an+b. 11732 // "odd" and "even" which does not match to an+b.
11722 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") 11733 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even")
11723 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); 11734 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n");
11724 } 11735 }
11725 11736
11726 } 11737 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698