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

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

Issue 1068393002: remove CSS 'all' property. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | « sky/engine/core/css/CSSProperty.cpp ('k') | sky/engine/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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 declaration->addParsedProperty(CSSProperty(propertyId, value.release())); 310 declaration->addParsedProperty(CSSProperty(propertyId, value.release()));
311 return true; 311 return true;
312 } 312 }
313 313
314 bool isValidKeywordPropertyAndValue(CSSPropertyID propertyId, CSSValueID valueID , const CSSParserContext& parserContext) 314 bool isValidKeywordPropertyAndValue(CSSPropertyID propertyId, CSSValueID valueID , const CSSParserContext& parserContext)
315 { 315 {
316 if (valueID == CSSValueInvalid) 316 if (valueID == CSSValueInvalid)
317 return false; 317 return false;
318 318
319 switch (propertyId) { 319 switch (propertyId) {
320 case CSSPropertyAll:
321 return valueID == CSSValueUnset;
322 case CSSPropertyBackgroundRepeatX: // repeat | no-repeat 320 case CSSPropertyBackgroundRepeatX: // repeat | no-repeat
323 case CSSPropertyBackgroundRepeatY: // repeat | no-repeat 321 case CSSPropertyBackgroundRepeatY: // repeat | no-repeat
324 return valueID == CSSValueRepeat || valueID == CSSValueNoRepeat; 322 return valueID == CSSValueRepeat || valueID == CSSValueNoRepeat;
325 case CSSPropertyBorderTopStyle: // <border-style> 323 case CSSPropertyBorderTopStyle: // <border-style>
326 case CSSPropertyBorderRightStyle: // Defined as: none | hidden | dotted | da shed | 324 case CSSPropertyBorderRightStyle: // Defined as: none | hidden | dotted | da shed |
327 case CSSPropertyBorderBottomStyle: // solid | double | groove | ridge | inse t | outset 325 case CSSPropertyBorderBottomStyle: // solid | double | groove | ridge | inse t | outset
328 case CSSPropertyBorderLeftStyle: 326 case CSSPropertyBorderLeftStyle:
329 case CSSPropertyWebkitBorderAfterStyle: 327 case CSSPropertyWebkitBorderAfterStyle:
330 case CSSPropertyWebkitBorderBeforeStyle: 328 case CSSPropertyWebkitBorderBeforeStyle:
331 case CSSPropertyWebkitBorderEndStyle: 329 case CSSPropertyWebkitBorderEndStyle:
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 return false; 452 return false;
455 } 453 }
456 return false; 454 return false;
457 } 455 }
458 456
459 bool isKeywordPropertyID(CSSPropertyID propertyId) 457 bool isKeywordPropertyID(CSSPropertyID propertyId)
460 { 458 {
461 switch (propertyId) { 459 switch (propertyId) {
462 case CSSPropertyAlignItems: 460 case CSSPropertyAlignItems:
463 case CSSPropertyAlignSelf: 461 case CSSPropertyAlignSelf:
464 case CSSPropertyAll:
465 case CSSPropertyBackgroundRepeatX: 462 case CSSPropertyBackgroundRepeatX:
466 case CSSPropertyBackgroundRepeatY: 463 case CSSPropertyBackgroundRepeatY:
467 case CSSPropertyBorderBottomStyle: 464 case CSSPropertyBorderBottomStyle:
468 case CSSPropertyBorderLeftStyle: 465 case CSSPropertyBorderLeftStyle:
469 case CSSPropertyBorderRightStyle: 466 case CSSPropertyBorderRightStyle:
470 case CSSPropertyBorderTopStyle: 467 case CSSPropertyBorderTopStyle:
471 case CSSPropertyBoxSizing: 468 case CSSPropertyBoxSizing:
472 case CSSPropertyCaptionSide: 469 case CSSPropertyCaptionSide:
473 case CSSPropertyDirection: 470 case CSSPropertyDirection:
474 case CSSPropertyDisplay: 471 case CSSPropertyDisplay:
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1596 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke nOffset(), errorType); 1593 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke nOffset(), errorType);
1597 } 1594 }
1598 1595
1599 void BisonCSSParser::startEndUnknownRule() 1596 void BisonCSSParser::startEndUnknownRule()
1600 { 1597 {
1601 if (m_observer) 1598 if (m_observer)
1602 m_observer->startEndUnknownRule(); 1599 m_observer->startEndUnknownRule();
1603 } 1600 }
1604 1601
1605 } 1602 }
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSProperty.cpp ('k') | sky/engine/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698