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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 class CORE_EXPORT ViewportStyleResolver | 45 class CORE_EXPORT ViewportStyleResolver |
46 : public GarbageCollected<ViewportStyleResolver> { | 46 : public GarbageCollected<ViewportStyleResolver> { |
47 public: | 47 public: |
48 static ViewportStyleResolver* create(Document& document) { | 48 static ViewportStyleResolver* create(Document& document) { |
49 return new ViewportStyleResolver(document); | 49 return new ViewportStyleResolver(document); |
50 } | 50 } |
51 | 51 |
52 void initialViewportChanged(); | 52 void initialViewportChanged(); |
53 void setNeedsCollectRules(); | 53 void setNeedsCollectRules(); |
| 54 bool needsUpdate() const { return m_needsUpdate; } |
54 void updateViewport(DocumentStyleSheetCollection&); | 55 void updateViewport(DocumentStyleSheetCollection&); |
55 | 56 |
56 void collectViewportRulesFromAuthorSheet(const CSSStyleSheet&); | 57 void collectViewportRulesFromAuthorSheet(const CSSStyleSheet&); |
57 | 58 |
58 DECLARE_TRACE(); | 59 DECLARE_TRACE(); |
59 | 60 |
60 private: | 61 private: |
61 explicit ViewportStyleResolver(Document&); | 62 explicit ViewportStyleResolver(Document&); |
62 | 63 |
63 void reset(); | 64 void reset(); |
(...skipping 18 matching lines...) Expand all Loading... |
82 MediaQueryResultList m_viewportDependentMediaQueryResults; | 83 MediaQueryResultList m_viewportDependentMediaQueryResults; |
83 MediaQueryResultList m_deviceDependentMediaQueryResults; | 84 MediaQueryResultList m_deviceDependentMediaQueryResults; |
84 bool m_hasAuthorStyle = false; | 85 bool m_hasAuthorStyle = false; |
85 bool m_hasViewportUnits = false; | 86 bool m_hasViewportUnits = false; |
86 UpdateType m_needsUpdate = CollectRules; | 87 UpdateType m_needsUpdate = CollectRules; |
87 }; | 88 }; |
88 | 89 |
89 } // namespace blink | 90 } // namespace blink |
90 | 91 |
91 #endif // ViewportStyleResolver_h | 92 #endif // ViewportStyleResolver_h |
OLD | NEW |