Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: Source/core/css/resolver/ViewportStyleResolver.h

Issue 1304623002: Make blink classes and structures in core/css fast-allocated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing (Fixed windows compile error) Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/resolver/StyleResolverStats.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolverStats.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698