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 15 matching lines...) Expand all Loading... |
26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
27 * SUCH DAMAGE. | 27 * SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #include "config.h" | 30 #include "config.h" |
31 #include "core/css/ViewportStyleResolver.h" | 31 #include "core/css/ViewportStyleResolver.h" |
32 | 32 |
33 #if ENABLE(CSS_DEVICE_ADAPTATION) | 33 #if ENABLE(CSS_DEVICE_ADAPTATION) |
34 | 34 |
35 #include "CSSValueKeywords.h" | 35 #include "CSSValueKeywords.h" |
36 #include "Document.h" | |
37 #include "ViewportArguments.h" | |
38 #include "core/css/StylePropertySet.h" | 36 #include "core/css/StylePropertySet.h" |
39 #include "core/css/StyleRule.h" | 37 #include "core/css/StyleRule.h" |
| 38 #include "core/dom/Document.h" |
| 39 #include "core/dom/ViewportArguments.h" |
40 #include "core/page/Page.h" | 40 #include "core/page/Page.h" |
41 #include "core/rendering/RenderView.h" | 41 #include "core/rendering/RenderView.h" |
42 | 42 |
43 namespace WebCore { | 43 namespace WebCore { |
44 | 44 |
45 ViewportStyleResolver::ViewportStyleResolver(Document* document) | 45 ViewportStyleResolver::ViewportStyleResolver(Document* document) |
46 : m_document(document) | 46 : m_document(document) |
47 { | 47 { |
48 ASSERT(m_document); | 48 ASSERT(m_document); |
49 } | 49 } |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 case CSSValueFixed: | 158 case CSSValueFixed: |
159 return 0; | 159 return 0; |
160 default: | 160 default: |
161 return defaultValue; | 161 return defaultValue; |
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 } // namespace WebCore | 165 } // namespace WebCore |
166 | 166 |
167 #endif // ENABLE(CSS_DEVICE_ADAPTATION) | 167 #endif // ENABLE(CSS_DEVICE_ADAPTATION) |
OLD | NEW |