| 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 26 matching lines...) Expand all Loading... |
| 37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
| 38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class Document; | 42 class Document; |
| 43 class MutableStylePropertySet; | 43 class MutableStylePropertySet; |
| 44 class StyleRuleViewport; | 44 class StyleRuleViewport; |
| 45 | 45 |
| 46 class CORE_EXPORT ViewportStyleResolver : public NoBaseWillBeGarbageCollected<Vi
ewportStyleResolver> { | 46 class CORE_EXPORT ViewportStyleResolver : public NoBaseWillBeGarbageCollected<Vi
ewportStyleResolver> { |
| 47 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ViewportStyleResolver); |
| 47 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ViewportStyleResolver); | 48 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ViewportStyleResolver); |
| 48 public: | 49 public: |
| 49 static PassOwnPtrWillBeRawPtr<ViewportStyleResolver> create(Document* docume
nt) | 50 static PassOwnPtrWillBeRawPtr<ViewportStyleResolver> create(Document* docume
nt) |
| 50 { | 51 { |
| 51 return adoptPtrWillBeNoop(new ViewportStyleResolver(document)); | 52 return adoptPtrWillBeNoop(new ViewportStyleResolver(document)); |
| 52 } | 53 } |
| 53 | 54 |
| 54 enum Origin { UserAgentOrigin, AuthorOrigin }; | 55 enum Origin { UserAgentOrigin, AuthorOrigin }; |
| 55 | 56 |
| 56 void collectViewportRules(); | 57 void collectViewportRules(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 68 Length viewportLengthValue(CSSPropertyID) const; | 69 Length viewportLengthValue(CSSPropertyID) const; |
| 69 | 70 |
| 70 RawPtrWillBeMember<Document> m_document; | 71 RawPtrWillBeMember<Document> m_document; |
| 71 RefPtrWillBeMember<MutableStylePropertySet> m_propertySet; | 72 RefPtrWillBeMember<MutableStylePropertySet> m_propertySet; |
| 72 bool m_hasAuthorStyle; | 73 bool m_hasAuthorStyle; |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace blink | 76 } // namespace blink |
| 76 | 77 |
| 77 #endif // ViewportStyleResolver_h | 78 #endif // ViewportStyleResolver_h |
| OLD | NEW |