| OLD | NEW |
| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // fall-through | 191 // fall-through |
| 192 case CSSValueNone: | 192 case CSSValueNone: |
| 193 return ColumnSpanNone; | 193 return ColumnSpanNone; |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 | 196 |
| 197 template <> | 197 template <> |
| 198 inline CSSIdentifierValue::CSSIdentifierValue(PrintColorAdjust value) | 198 inline CSSIdentifierValue::CSSIdentifierValue(PrintColorAdjust value) |
| 199 : CSSValue(IdentifierClass) { | 199 : CSSValue(IdentifierClass) { |
| 200 switch (value) { | 200 switch (value) { |
| 201 case PrintColorAdjustExact: | 201 case PrintColorAdjust::Exact: |
| 202 m_valueID = CSSValueExact; | 202 m_valueID = CSSValueExact; |
| 203 break; | 203 break; |
| 204 case PrintColorAdjustEconomy: | 204 case PrintColorAdjust::Economy: |
| 205 m_valueID = CSSValueEconomy; | 205 m_valueID = CSSValueEconomy; |
| 206 break; | 206 break; |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 | 209 |
| 210 template <> | 210 template <> |
| 211 inline PrintColorAdjust CSSIdentifierValue::convertTo() const { | 211 inline PrintColorAdjust CSSIdentifierValue::convertTo() const { |
| 212 switch (m_valueID) { | 212 switch (m_valueID) { |
| 213 case CSSValueEconomy: | 213 case CSSValueEconomy: |
| 214 return PrintColorAdjustEconomy; | 214 return PrintColorAdjust::Economy; |
| 215 case CSSValueExact: | 215 case CSSValueExact: |
| 216 return PrintColorAdjustExact; | 216 return PrintColorAdjust::Exact; |
| 217 default: | 217 default: |
| 218 break; | 218 break; |
| 219 } | 219 } |
| 220 | 220 |
| 221 ASSERT_NOT_REACHED(); | 221 ASSERT_NOT_REACHED(); |
| 222 return PrintColorAdjustEconomy; | 222 return PrintColorAdjust::Economy; |
| 223 } | 223 } |
| 224 | 224 |
| 225 template <> | 225 template <> |
| 226 inline CSSIdentifierValue::CSSIdentifierValue(EBorderStyle e) | 226 inline CSSIdentifierValue::CSSIdentifierValue(EBorderStyle e) |
| 227 : CSSValue(IdentifierClass) { | 227 : CSSValue(IdentifierClass) { |
| 228 switch (e) { | 228 switch (e) { |
| 229 case BorderStyleNone: | 229 case BorderStyleNone: |
| 230 m_valueID = CSSValueNone; | 230 m_valueID = CSSValueNone; |
| 231 break; | 231 break; |
| 232 case BorderStyleHidden: | 232 case BorderStyleHidden: |
| (...skipping 4430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4663 default: | 4663 default: |
| 4664 break; | 4664 break; |
| 4665 } | 4665 } |
| 4666 ASSERT_NOT_REACHED(); | 4666 ASSERT_NOT_REACHED(); |
| 4667 return ContainsNone; | 4667 return ContainsNone; |
| 4668 } | 4668 } |
| 4669 | 4669 |
| 4670 } // namespace blink | 4670 } // namespace blink |
| 4671 | 4671 |
| 4672 #endif | 4672 #endif |
| OLD | NEW |