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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #ifndef ViewportStyleResolver_h | 30 #ifndef ViewportStyleResolver_h |
31 #define ViewportStyleResolver_h | 31 #define ViewportStyleResolver_h |
32 | 32 |
33 #include "CSSPropertyNames.h" | 33 #include "CSSPropertyNames.h" |
34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
35 #include "wtf/RefPtr.h" | 35 #include "wtf/RefPtr.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class CSSPrimitiveValue; | |
40 class Document; | 39 class Document; |
41 class MutableStylePropertySet; | 40 class MutableStylePropertySet; |
42 class StyleRuleViewport; | 41 class StyleRuleViewport; |
43 | 42 |
44 class ViewportStyleResolver : public RefCounted<ViewportStyleResolver> { | 43 class ViewportStyleResolver : public RefCounted<ViewportStyleResolver> { |
45 public: | 44 public: |
46 static PassRefPtr<ViewportStyleResolver> create(Document* document) | 45 static PassRefPtr<ViewportStyleResolver> create(Document* document) |
47 { | 46 { |
48 return adoptRef(new ViewportStyleResolver(document)); | 47 return adoptRef(new ViewportStyleResolver(document)); |
49 } | 48 } |
(...skipping 10 matching lines...) Expand all Loading... |
60 | 59 |
61 float getViewportArgumentValue(CSSPropertyID) const; | 60 float getViewportArgumentValue(CSSPropertyID) const; |
62 | 61 |
63 Document* m_document; | 62 Document* m_document; |
64 RefPtr<MutableStylePropertySet> m_propertySet; | 63 RefPtr<MutableStylePropertySet> m_propertySet; |
65 }; | 64 }; |
66 | 65 |
67 } // namespace WebCore | 66 } // namespace WebCore |
68 | 67 |
69 #endif // ViewportStyleResolver_h | 68 #endif // ViewportStyleResolver_h |
OLD | NEW |