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

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

Issue 768893002: Remove border-collapse (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 { 343 {
344 if (valueID == CSSValueInvalid) 344 if (valueID == CSSValueInvalid)
345 return false; 345 return false;
346 346
347 switch (propertyId) { 347 switch (propertyId) {
348 case CSSPropertyAll: 348 case CSSPropertyAll:
349 return valueID == CSSValueUnset; 349 return valueID == CSSValueUnset;
350 case CSSPropertyBackgroundRepeatX: // repeat | no-repeat 350 case CSSPropertyBackgroundRepeatX: // repeat | no-repeat
351 case CSSPropertyBackgroundRepeatY: // repeat | no-repeat 351 case CSSPropertyBackgroundRepeatY: // repeat | no-repeat
352 return valueID == CSSValueRepeat || valueID == CSSValueNoRepeat; 352 return valueID == CSSValueRepeat || valueID == CSSValueNoRepeat;
353 case CSSPropertyBorderCollapse: // collapse | separate
354 return valueID == CSSValueCollapse || valueID == CSSValueSeparate;
355 case CSSPropertyBorderTopStyle: // <border-style> 353 case CSSPropertyBorderTopStyle: // <border-style>
356 case CSSPropertyBorderRightStyle: // Defined as: none | hidden | dotted | da shed | 354 case CSSPropertyBorderRightStyle: // Defined as: none | hidden | dotted | da shed |
357 case CSSPropertyBorderBottomStyle: // solid | double | groove | ridge | inse t | outset 355 case CSSPropertyBorderBottomStyle: // solid | double | groove | ridge | inse t | outset
358 case CSSPropertyBorderLeftStyle: 356 case CSSPropertyBorderLeftStyle:
359 case CSSPropertyWebkitBorderAfterStyle: 357 case CSSPropertyWebkitBorderAfterStyle:
360 case CSSPropertyWebkitBorderBeforeStyle: 358 case CSSPropertyWebkitBorderBeforeStyle:
361 case CSSPropertyWebkitBorderEndStyle: 359 case CSSPropertyWebkitBorderEndStyle:
362 case CSSPropertyWebkitBorderStartStyle: 360 case CSSPropertyWebkitBorderStartStyle:
363 return valueID >= CSSValueNone && valueID <= CSSValueDouble; 361 return valueID >= CSSValueNone && valueID <= CSSValueDouble;
364 case CSSPropertyBoxSizing: 362 case CSSPropertyBoxSizing:
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 491
494 bool isKeywordPropertyID(CSSPropertyID propertyId) 492 bool isKeywordPropertyID(CSSPropertyID propertyId)
495 { 493 {
496 switch (propertyId) { 494 switch (propertyId) {
497 case CSSPropertyAlignItems: 495 case CSSPropertyAlignItems:
498 case CSSPropertyAlignSelf: 496 case CSSPropertyAlignSelf:
499 case CSSPropertyAll: 497 case CSSPropertyAll:
500 case CSSPropertyBackgroundRepeatX: 498 case CSSPropertyBackgroundRepeatX:
501 case CSSPropertyBackgroundRepeatY: 499 case CSSPropertyBackgroundRepeatY:
502 case CSSPropertyBorderBottomStyle: 500 case CSSPropertyBorderBottomStyle:
503 case CSSPropertyBorderCollapse:
504 case CSSPropertyBorderLeftStyle: 501 case CSSPropertyBorderLeftStyle:
505 case CSSPropertyBorderRightStyle: 502 case CSSPropertyBorderRightStyle:
506 case CSSPropertyBorderTopStyle: 503 case CSSPropertyBorderTopStyle:
507 case CSSPropertyBoxSizing: 504 case CSSPropertyBoxSizing:
508 case CSSPropertyCaptionSide: 505 case CSSPropertyCaptionSide:
509 case CSSPropertyDirection: 506 case CSSPropertyDirection:
510 case CSSPropertyDisplay: 507 case CSSPropertyDisplay:
511 case CSSPropertyEmptyCells: 508 case CSSPropertyEmptyCells:
512 case CSSPropertyFontStyle: 509 case CSSPropertyFontStyle:
513 case CSSPropertyFontStretch: 510 case CSSPropertyFontStretch:
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1824 m_observer->endProperty(isImportantFound, isPropertyParsed, m_tokenizer. safeUserStringTokenOffset(), errorType); 1821 m_observer->endProperty(isImportantFound, isPropertyParsed, m_tokenizer. safeUserStringTokenOffset(), errorType);
1825 } 1822 }
1826 1823
1827 void BisonCSSParser::startEndUnknownRule() 1824 void BisonCSSParser::startEndUnknownRule()
1828 { 1825 {
1829 if (m_observer) 1826 if (m_observer)
1830 m_observer->startEndUnknownRule(); 1827 m_observer->startEndUnknownRule();
1831 } 1828 }
1832 1829
1833 } 1830 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698