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

Unified Diff: Source/core/css/resolver/MatchResult.h

Issue 273843003: [Oilpan]: Make StylePropertySet fully garbage collected. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review feedback Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/parser/SizesCalcParserTest.cpp ('k') | Source/core/css/resolver/MatchResult.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/MatchResult.h
diff --git a/Source/core/css/resolver/MatchResult.h b/Source/core/css/resolver/MatchResult.h
index 25d9b91900a50be0e24b2af3e7725e6e291714ea..d89f1174682f01559c61955228cb0515941001b2 100644
--- a/Source/core/css/resolver/MatchResult.h
+++ b/Source/core/css/resolver/MatchResult.h
@@ -25,6 +25,7 @@
#include "core/css/RuleSet.h"
#include "core/css/SelectorChecker.h"
+#include "platform/heap/Handle.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
@@ -53,10 +54,15 @@ struct MatchRanges {
};
struct MatchedProperties {
+ ALLOW_ONLY_INLINE_ALLOCATION();
+public:
MatchedProperties();
~MatchedProperties();
- RefPtr<StylePropertySet> properties;
+ void trace(Visitor*);
+
+ RefPtrWillBeMember<StylePropertySet> properties;
+
union {
struct {
unsigned linkMatchType : 2;
@@ -67,11 +73,17 @@ struct MatchedProperties {
};
};
+} // WebCore namespace
+
+WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(WebCore::MatchedProperties);
+
+namespace WebCore {
+
class MatchResult {
STACK_ALLOCATED();
public:
MatchResult() : isCacheable(true) { }
- Vector<MatchedProperties, 64> matchedProperties;
+ WillBeHeapVector<MatchedProperties, 64> matchedProperties;
WillBeHeapVector<RawPtrWillBeMember<StyleRule>, 64> matchedRules;
MatchRanges ranges;
bool isCacheable;
« no previous file with comments | « Source/core/css/parser/SizesCalcParserTest.cpp ('k') | Source/core/css/resolver/MatchResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698