| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 2 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 return percentValue; | 137 return percentValue; |
| 138 default: | 138 default: |
| 139 ASSERT_NOT_REACHED(); | 139 ASSERT_NOT_REACHED(); |
| 140 break; | 140 break; |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 | 143 |
| 144 switch (primitiveValue->getValueID()) { | 144 switch (primitiveValue->getValueID()) { |
| 145 case CSSValueAuto: | 145 case CSSValueAuto: |
| 146 return defaultValue; | 146 return defaultValue; |
| 147 case CSSValueDeviceHeight: | |
| 148 return ViewportArguments::ValueDeviceHeight; | |
| 149 case CSSValueDeviceWidth: | |
| 150 return ViewportArguments::ValueDeviceWidth; | |
| 151 case CSSValueLandscape: | 147 case CSSValueLandscape: |
| 152 return ViewportArguments::ValueLandscape; | 148 return ViewportArguments::ValueLandscape; |
| 153 case CSSValuePortrait: | 149 case CSSValuePortrait: |
| 154 return ViewportArguments::ValuePortrait; | 150 return ViewportArguments::ValuePortrait; |
| 155 case CSSValueZoom: | 151 case CSSValueZoom: |
| 156 return defaultValue; | 152 return defaultValue; |
| 157 case CSSValueFixed: | 153 case CSSValueFixed: |
| 158 return 0; | 154 return 0; |
| 159 default: | 155 default: |
| 160 return defaultValue; | 156 return defaultValue; |
| 161 } | 157 } |
| 162 } | 158 } |
| 163 | 159 |
| 164 } // namespace WebCore | 160 } // namespace WebCore |
| OLD | NEW |