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

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

Issue 336693005: Add image-rendering: pixelated. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't add 'pixelated' to devtools. Created 6 years, 6 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/parser/CSSPropertyParser.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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 // table-column-group | table-column | table-cell | table-caption | -web kit-box | -webkit-inline-box | none 393 // table-column-group | table-column | table-cell | table-caption | -web kit-box | -webkit-inline-box | none
394 // flex | inline-flex | -webkit-flex | -webkit-inline-flex | grid | inli ne-grid | lazy-block 394 // flex | inline-flex | -webkit-flex | -webkit-inline-flex | grid | inli ne-grid | lazy-block
395 return (valueID >= CSSValueInline && valueID <= CSSValueInlineFlex) || v alueID == CSSValueWebkitFlex || valueID == CSSValueWebkitInlineFlex || valueID = = CSSValueNone 395 return (valueID >= CSSValueInline && valueID <= CSSValueInlineFlex) || v alueID == CSSValueWebkitFlex || valueID == CSSValueWebkitInlineFlex || valueID = = CSSValueNone
396 || (RuntimeEnabledFeatures::cssGridLayoutEnabled() && (valueID == CS SValueGrid || valueID == CSSValueInlineGrid)); 396 || (RuntimeEnabledFeatures::cssGridLayoutEnabled() && (valueID == CS SValueGrid || valueID == CSSValueInlineGrid));
397 case CSSPropertyEmptyCells: // show | hide 397 case CSSPropertyEmptyCells: // show | hide
398 return valueID == CSSValueShow || valueID == CSSValueHide; 398 return valueID == CSSValueShow || valueID == CSSValueHide;
399 case CSSPropertyFloat: // left | right | none | center (for buggy CSS, maps to none) 399 case CSSPropertyFloat: // left | right | none | center (for buggy CSS, maps to none)
400 return valueID == CSSValueLeft || valueID == CSSValueRight || valueID == CSSValueNone || valueID == CSSValueCenter; 400 return valueID == CSSValueLeft || valueID == CSSValueRight || valueID == CSSValueNone || valueID == CSSValueCenter;
401 case CSSPropertyFontStyle: // normal | italic | oblique 401 case CSSPropertyFontStyle: // normal | italic | oblique
402 return valueID == CSSValueNormal || valueID == CSSValueItalic || valueID == CSSValueOblique; 402 return valueID == CSSValueNormal || valueID == CSSValueItalic || valueID == CSSValueOblique;
403 case CSSPropertyImageRendering: // auto | optimizeContrast 403 case CSSPropertyImageRendering: // auto | optimizeContrast | pixelated
404 return valueID == CSSValueAuto || valueID == CSSValueWebkitOptimizeContr ast; 404 return valueID == CSSValueAuto || valueID == CSSValueWebkitOptimizeContr ast || (RuntimeEnabledFeatures::imageRenderingPixelatedEnabled() && valueID == C SSValuePixelated);
405 case CSSPropertyIsolation: // auto | isolate 405 case CSSPropertyIsolation: // auto | isolate
406 return RuntimeEnabledFeatures::cssCompositingEnabled() 406 return RuntimeEnabledFeatures::cssCompositingEnabled()
407 && (valueID == CSSValueAuto || valueID == CSSValueIsolate); 407 && (valueID == CSSValueAuto || valueID == CSSValueIsolate);
408 case CSSPropertyListStylePosition: // inside | outside 408 case CSSPropertyListStylePosition: // inside | outside
409 return valueID == CSSValueInside || valueID == CSSValueOutside; 409 return valueID == CSSValueInside || valueID == CSSValueOutside;
410 case CSSPropertyListStyleType: 410 case CSSPropertyListStyleType:
411 // See section CSS_PROP_LIST_STYLE_TYPE of file CSSValueKeywords.in 411 // See section CSS_PROP_LIST_STYLE_TYPE of file CSSValueKeywords.in
412 // for the list of supported list-style-types. 412 // for the list of supported list-style-types.
413 return (valueID >= CSSValueDisc && valueID <= CSSValueKatakanaIroha) || valueID == CSSValueNone; 413 return (valueID >= CSSValueDisc && valueID <= CSSValueKatakanaIroha) || valueID == CSSValueNone;
414 case CSSPropertyObjectFit: 414 case CSSPropertyObjectFit:
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 rule->setProperties(createStylePropertySet()); 2111 rule->setProperties(createStylePropertySet());
2112 clearProperties(); 2112 clearProperties();
2113 2113
2114 StyleRuleViewport* result = rule.get(); 2114 StyleRuleViewport* result = rule.get();
2115 m_parsedRules.append(rule.release()); 2115 m_parsedRules.append(rule.release());
2116 2116
2117 return result; 2117 return result;
2118 } 2118 }
2119 2119
2120 } 2120 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698