| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved. | 2 * Copyright (C) 2012-2013 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 NOTREACHED(); | 250 NOTREACHED(); |
| 251 break; | 251 break; |
| 252 } | 252 } |
| 253 } | 253 } |
| 254 | 254 |
| 255 NOTREACHED(); | 255 NOTREACHED(); |
| 256 return defaultValue; | 256 return defaultValue; |
| 257 } | 257 } |
| 258 | 258 |
| 259 Length ViewportStyleResolver::viewportLengthValue(CSSPropertyID id) { | 259 Length ViewportStyleResolver::viewportLengthValue(CSSPropertyID id) { |
| 260 ASSERT(id == CSSPropertyMaxHeight || id == CSSPropertyMinHeight || | 260 DCHECK(id == CSSPropertyMaxHeight || id == CSSPropertyMinHeight || |
| 261 id == CSSPropertyMaxWidth || id == CSSPropertyMinWidth); | 261 id == CSSPropertyMaxWidth || id == CSSPropertyMinWidth); |
| 262 | 262 |
| 263 const CSSValue* value = m_propertySet->getPropertyCSSValue(id); | 263 const CSSValue* value = m_propertySet->getPropertyCSSValue(id); |
| 264 if (!value || !(value->isPrimitiveValue() || value->isIdentifierValue())) | 264 if (!value || !(value->isPrimitiveValue() || value->isIdentifierValue())) |
| 265 return Length(); // auto | 265 return Length(); // auto |
| 266 | 266 |
| 267 if (value->isIdentifierValue()) { | 267 if (value->isIdentifierValue()) { |
| 268 CSSValueID valueID = toCSSIdentifierValue(value)->getValueID(); | 268 CSSValueID valueID = toCSSIdentifierValue(value)->getValueID(); |
| 269 if (valueID == CSSValueInternalExtendToZoom) | 269 if (valueID == CSSValueInternalExtendToZoom) |
| 270 return Length(ExtendToZoom); | 270 return Length(ExtendToZoom); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 DEFINE_TRACE(ViewportStyleResolver) { | 337 DEFINE_TRACE(ViewportStyleResolver) { |
| 338 visitor->trace(m_document); | 338 visitor->trace(m_document); |
| 339 visitor->trace(m_propertySet); | 339 visitor->trace(m_propertySet); |
| 340 visitor->trace(m_initialViewportMedium); | 340 visitor->trace(m_initialViewportMedium); |
| 341 visitor->trace(m_viewportDependentMediaQueryResults); | 341 visitor->trace(m_viewportDependentMediaQueryResults); |
| 342 visitor->trace(m_deviceDependentMediaQueryResults); | 342 visitor->trace(m_deviceDependentMediaQueryResults); |
| 343 } | 343 } |
| 344 | 344 |
| 345 } // namespace blink | 345 } // namespace blink |
| OLD | NEW |