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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 2914613002: Add keyword_subset field template and generate text-decoration-line. (Closed)
Patch Set: Rebase Created 3 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) 2007 Alexey Proskuryakov <ap@nypop.com>. 2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>.
3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 return ETableLayout::kAuto; 651 return ETableLayout::kAuto;
652 default: 652 default:
653 break; 653 break;
654 } 654 }
655 655
656 NOTREACHED(); 656 NOTREACHED();
657 return ETableLayout::kAuto; 657 return ETableLayout::kAuto;
658 } 658 }
659 659
660 template <> 660 template <>
661 inline TextDecoration CSSIdentifierValue::ConvertTo() const {
662 switch (value_id_) {
663 case CSSValueNone:
664 return TextDecoration::kNone;
665 case CSSValueUnderline:
666 return TextDecoration::kUnderline;
667 case CSSValueOverline:
668 return TextDecoration::kOverline;
669 case CSSValueLineThrough:
670 return TextDecoration::kLineThrough;
671 case CSSValueBlink:
672 return TextDecoration::kBlink;
673 default:
674 break;
675 }
676
677 NOTREACHED();
678 return TextDecoration::kNone;
679 }
680
681 template <>
682 inline TextDecorationSkip CSSIdentifierValue::ConvertTo() const { 661 inline TextDecorationSkip CSSIdentifierValue::ConvertTo() const {
683 switch (value_id_) { 662 switch (value_id_) {
684 case CSSValueObjects: 663 case CSSValueObjects:
685 return TextDecorationSkip::kObjects; 664 return TextDecorationSkip::kObjects;
686 case CSSValueInk: 665 case CSSValueInk:
687 return TextDecorationSkip::kInk; 666 return TextDecorationSkip::kInk;
688 default: 667 default:
689 break; 668 break;
690 } 669 }
691 670
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 default: 2176 default:
2198 break; 2177 break;
2199 } 2178 }
2200 NOTREACHED(); 2179 NOTREACHED();
2201 return kContainsNone; 2180 return kContainsNone;
2202 } 2181 }
2203 2182
2204 } // namespace blink 2183 } // namespace blink
2205 2184
2206 #endif 2185 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698