| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 class ViewportStyleResolver : public RefCounted<ViewportStyleResolver> { | 44 class ViewportStyleResolver : public RefCounted<ViewportStyleResolver> { |
| 45 public: | 45 public: |
| 46 static PassRefPtr<ViewportStyleResolver> create(Document* document) | 46 static PassRefPtr<ViewportStyleResolver> create(Document* document) |
| 47 { | 47 { |
| 48 return adoptRef(new ViewportStyleResolver(document)); | 48 return adoptRef(new ViewportStyleResolver(document)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 ~ViewportStyleResolver(); | 51 ~ViewportStyleResolver(); |
| 52 | 52 |
| 53 bool shouldDisableDesktopWorkarounds() const; |
| 54 bool affectedByViewportChange() const; |
| 55 |
| 53 void addViewportRule(StyleRuleViewport*); | 56 void addViewportRule(StyleRuleViewport*); |
| 54 | 57 |
| 55 void clearDocument(); | 58 void clearDocument(); |
| 56 void resolve(); | 59 void resolve(); |
| 57 | 60 |
| 58 private: | 61 private: |
| 59 explicit ViewportStyleResolver(Document*); | 62 explicit ViewportStyleResolver(Document*); |
| 60 | 63 |
| 61 float getViewportArgumentValue(CSSPropertyID) const; | 64 float getViewportArgumentValue(CSSPropertyID) const; |
| 62 | 65 |
| 63 Document* m_document; | 66 Document* m_document; |
| 67 float m_maxPriority; |
| 64 RefPtr<MutableStylePropertySet> m_propertySet; | 68 RefPtr<MutableStylePropertySet> m_propertySet; |
| 65 }; | 69 }; |
| 66 | 70 |
| 67 } // namespace WebCore | 71 } // namespace WebCore |
| 68 | 72 |
| 69 #endif // ViewportStyleResolver_h | 73 #endif // ViewportStyleResolver_h |
| OLD | NEW |