| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 return ColumnSpanAll; | 188 return ColumnSpanAll; |
| 189 default: | 189 default: |
| 190 ASSERT_NOT_REACHED(); | 190 ASSERT_NOT_REACHED(); |
| 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(EPrintColorAdjust value) |
| 199 : CSSValue(IdentifierClass) { | 199 : CSSValue(IdentifierClass) { |
| 200 switch (value) { | 200 switch (value) { |
| 201 case PrintColorAdjust::Exact: | 201 case EPrintColorAdjust::Exact: |
| 202 m_valueID = CSSValueExact; | 202 m_valueID = CSSValueExact; |
| 203 break; | 203 break; |
| 204 case PrintColorAdjust::Economy: | 204 case EPrintColorAdjust::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 EPrintColorAdjust CSSIdentifierValue::convertTo() const { |
| 212 switch (m_valueID) { | 212 switch (m_valueID) { |
| 213 case CSSValueEconomy: | 213 case CSSValueEconomy: |
| 214 return PrintColorAdjust::Economy; | 214 return EPrintColorAdjust::Economy; |
| 215 case CSSValueExact: | 215 case CSSValueExact: |
| 216 return PrintColorAdjust::Exact; | 216 return EPrintColorAdjust::Exact; |
| 217 default: | 217 default: |
| 218 break; | 218 break; |
| 219 } | 219 } |
| 220 | 220 |
| 221 ASSERT_NOT_REACHED(); | 221 ASSERT_NOT_REACHED(); |
| 222 return PrintColorAdjust::Economy; | 222 return EPrintColorAdjust::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 4552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4785 default: | 4785 default: |
| 4786 break; | 4786 break; |
| 4787 } | 4787 } |
| 4788 ASSERT_NOT_REACHED(); | 4788 ASSERT_NOT_REACHED(); |
| 4789 return ContainsNone; | 4789 return ContainsNone; |
| 4790 } | 4790 } |
| 4791 | 4791 |
| 4792 } // namespace blink | 4792 } // namespace blink |
| 4793 | 4793 |
| 4794 #endif | 4794 #endif |
| OLD | NEW |