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

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

Issue 2394273006: Add CSS support for text-decoration-skip (Closed)
Patch Set: Histograms typo fixed, DCHECK Created 4 years, 2 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 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2114 break; 2114 break;
2115 } 2115 }
2116 2116
2117 // FIXME: Implement support for 'under left' and 'under right' values. 2117 // FIXME: Implement support for 'under left' and 'under right' values.
2118 2118
2119 ASSERT_NOT_REACHED(); 2119 ASSERT_NOT_REACHED();
2120 return TextUnderlinePositionAuto; 2120 return TextUnderlinePositionAuto;
2121 } 2121 }
2122 2122
2123 template <> 2123 template <>
2124 inline TextDecorationSkip CSSIdentifierValue::convertTo() const {
2125 switch (m_valueID) {
2126 case CSSValueObjects:
2127 return TextDecorationSkipObjects;
2128 case CSSValueInk:
2129 return TextDecorationSkipInk;
2130 default:
2131 break;
2132 }
2133
2134 NOTREACHED();
2135 return TextDecorationSkipObjects;
2136 }
2137
2138 template <>
2124 inline CSSIdentifierValue::CSSIdentifierValue(ETextSecurity e) 2139 inline CSSIdentifierValue::CSSIdentifierValue(ETextSecurity e)
2125 : CSSValue(IdentifierClass) { 2140 : CSSValue(IdentifierClass) {
2126 switch (e) { 2141 switch (e) {
2127 case TSNONE: 2142 case TSNONE:
2128 m_valueID = CSSValueNone; 2143 m_valueID = CSSValueNone;
2129 break; 2144 break;
2130 case TSDISC: 2145 case TSDISC:
2131 m_valueID = CSSValueDisc; 2146 m_valueID = CSSValueDisc;
2132 break; 2147 break;
2133 case TSCIRCLE: 2148 case TSCIRCLE:
(...skipping 2398 matching lines...) Expand 10 before | Expand all | Expand 10 after
4532 default: 4547 default:
4533 break; 4548 break;
4534 } 4549 }
4535 ASSERT_NOT_REACHED(); 4550 ASSERT_NOT_REACHED();
4536 return ContainsNone; 4551 return ContainsNone;
4537 } 4552 }
4538 4553
4539 } // namespace blink 4554 } // namespace blink
4540 4555
4541 #endif 4556 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698