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. (http://www.torchmo
bile.com/) | 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 5 * (http://www.torchmobile.com/) |
5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> | 6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 8 * |
8 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
9 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
10 * are met: | 11 * are met: |
11 * | 12 * |
12 * 1. Redistributions of source code must retain the above copyright | 13 * 1. Redistributions of source code must retain the above copyright |
13 * notice, this list of conditions and the following disclaimer. | 14 * notice, this list of conditions and the following disclaimer. |
14 * 2. Redistributions in binary form must reproduce the above copyright | 15 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1857 template <> | 1858 template <> |
1858 inline EResize CSSIdentifierValue::convertTo() const { | 1859 inline EResize CSSIdentifierValue::convertTo() const { |
1859 switch (m_valueID) { | 1860 switch (m_valueID) { |
1860 case CSSValueBoth: | 1861 case CSSValueBoth: |
1861 return RESIZE_BOTH; | 1862 return RESIZE_BOTH; |
1862 case CSSValueHorizontal: | 1863 case CSSValueHorizontal: |
1863 return RESIZE_HORIZONTAL; | 1864 return RESIZE_HORIZONTAL; |
1864 case CSSValueVertical: | 1865 case CSSValueVertical: |
1865 return RESIZE_VERTICAL; | 1866 return RESIZE_VERTICAL; |
1866 case CSSValueAuto: | 1867 case CSSValueAuto: |
1867 ASSERT_NOT_REACHED(); // Depends on settings, thus should be handled by t
he caller. | 1868 // Depends on settings, thus should be handled by the caller. |
| 1869 NOTREACHED(); |
1868 return RESIZE_NONE; | 1870 return RESIZE_NONE; |
1869 case CSSValueNone: | 1871 case CSSValueNone: |
1870 return RESIZE_NONE; | 1872 return RESIZE_NONE; |
1871 default: | 1873 default: |
1872 break; | 1874 break; |
1873 } | 1875 } |
1874 | 1876 |
1875 ASSERT_NOT_REACHED(); | 1877 ASSERT_NOT_REACHED(); |
1876 return RESIZE_NONE; | 1878 return RESIZE_NONE; |
1877 } | 1879 } |
(...skipping 2652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4530 default: | 4532 default: |
4531 break; | 4533 break; |
4532 } | 4534 } |
4533 ASSERT_NOT_REACHED(); | 4535 ASSERT_NOT_REACHED(); |
4534 return ContainsNone; | 4536 return ContainsNone; |
4535 } | 4537 } |
4536 | 4538 |
4537 } // namespace blink | 4539 } // namespace blink |
4538 | 4540 |
4539 #endif | 4541 #endif |
OLD | NEW |