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

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

Issue 346603007: Remove position: sticky (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/resolver/StyleAdjuster.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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 case CSSPropertyWebkitColumnBreakAfter: 428 case CSSPropertyWebkitColumnBreakAfter:
429 case CSSPropertyWebkitColumnBreakBefore: 429 case CSSPropertyWebkitColumnBreakBefore:
430 return valueID == CSSValueAuto || valueID == CSSValueAlways || valueID = = CSSValueAvoid || valueID == CSSValueLeft || valueID == CSSValueRight; 430 return valueID == CSSValueAuto || valueID == CSSValueAlways || valueID = = CSSValueAvoid || valueID == CSSValueLeft || valueID == CSSValueRight;
431 case CSSPropertyPageBreakInside: // avoid | auto 431 case CSSPropertyPageBreakInside: // avoid | auto
432 case CSSPropertyWebkitColumnBreakInside: 432 case CSSPropertyWebkitColumnBreakInside:
433 return valueID == CSSValueAuto || valueID == CSSValueAvoid; 433 return valueID == CSSValueAuto || valueID == CSSValueAvoid;
434 case CSSPropertyPointerEvents: 434 case CSSPropertyPointerEvents:
435 // none | visiblePainted | visibleFill | visibleStroke | visible | 435 // none | visiblePainted | visibleFill | visibleStroke | visible |
436 // painted | fill | stroke | auto | all | bounding-box 436 // painted | fill | stroke | auto | all | bounding-box
437 return valueID == CSSValueVisible || valueID == CSSValueNone || valueID == CSSValueAll || valueID == CSSValueAuto || (valueID >= CSSValueVisiblepainted && valueID <= CSSValueBoundingBox); 437 return valueID == CSSValueVisible || valueID == CSSValueNone || valueID == CSSValueAll || valueID == CSSValueAuto || (valueID >= CSSValueVisiblepainted && valueID <= CSSValueBoundingBox);
438 case CSSPropertyPosition: // static | relative | absolute | fixed | sticky 438 case CSSPropertyPosition: // static | relative | absolute | fixed
439 return valueID == CSSValueStatic || valueID == CSSValueRelative || value ID == CSSValueAbsolute || valueID == CSSValueFixed 439 return valueID == CSSValueStatic || valueID == CSSValueRelative || value ID == CSSValueAbsolute || valueID == CSSValueFixed;
440 || (RuntimeEnabledFeatures::cssStickyPositionEnabled() && valueID == CSSValueSticky);
441 case CSSPropertyResize: // none | both | horizontal | vertical | auto 440 case CSSPropertyResize: // none | both | horizontal | vertical | auto
442 return valueID == CSSValueNone || valueID == CSSValueBoth || valueID == CSSValueHorizontal || valueID == CSSValueVertical || valueID == CSSValueAuto; 441 return valueID == CSSValueNone || valueID == CSSValueBoth || valueID == CSSValueHorizontal || valueID == CSSValueVertical || valueID == CSSValueAuto;
443 case CSSPropertyScrollBehavior: // instant | smooth 442 case CSSPropertyScrollBehavior: // instant | smooth
444 return RuntimeEnabledFeatures::cssomSmoothScrollEnabled() 443 return RuntimeEnabledFeatures::cssomSmoothScrollEnabled()
445 && (valueID == CSSValueInstant || valueID == CSSValueSmooth); 444 && (valueID == CSSValueInstant || valueID == CSSValueSmooth);
446 case CSSPropertySpeak: // none | normal | spell-out | digits | literal-punct uation | no-punctuation 445 case CSSPropertySpeak: // none | normal | spell-out | digits | literal-punct uation | no-punctuation
447 return valueID == CSSValueNone || valueID == CSSValueNormal || valueID = = CSSValueSpellOut || valueID == CSSValueDigits || valueID == CSSValueLiteralPun ctuation || valueID == CSSValueNoPunctuation; 446 return valueID == CSSValueNone || valueID == CSSValueNormal || valueID = = CSSValueSpellOut || valueID == CSSValueDigits || valueID == CSSValueLiteralPun ctuation || valueID == CSSValueNoPunctuation;
448 case CSSPropertyTableLayout: // auto | fixed 447 case CSSPropertyTableLayout: // auto | fixed
449 return valueID == CSSValueAuto || valueID == CSSValueFixed; 448 return valueID == CSSValueAuto || valueID == CSSValueFixed;
450 case CSSPropertyTextAlignLast: 449 case CSSPropertyTextAlignLast:
(...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 rule->setProperties(createStylePropertySet()); 2110 rule->setProperties(createStylePropertySet());
2112 clearProperties(); 2111 clearProperties();
2113 2112
2114 StyleRuleViewport* result = rule.get(); 2113 StyleRuleViewport* result = rule.get();
2115 m_parsedRules.append(rule.release()); 2114 m_parsedRules.append(rule.release());
2116 2115
2117 return result; 2116 return result;
2118 } 2117 }
2119 2118
2120 } 2119 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698