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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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/resolver/FontBuilderTest.cpp ('k') | Source/core/css/resolver/MatchedPropertiesCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/MatchedPropertiesCache.h
diff --git a/Source/core/css/resolver/MatchedPropertiesCache.h b/Source/core/css/resolver/MatchedPropertiesCache.h
index 3dccd188e31e8b7567263732a9a522b0221424f4..1b00343c981d5b5529732c265d43a4d993393da9 100644
--- a/Source/core/css/resolver/MatchedPropertiesCache.h
+++ b/Source/core/css/resolver/MatchedPropertiesCache.h
@@ -33,7 +33,7 @@
namespace blink {
-class LayoutStyle;
+class ComputedStyle;
class StyleResolverState;
class CachedMatchedProperties final : public NoBaseWillBeGarbageCollectedFinalized<CachedMatchedProperties> {
@@ -41,10 +41,10 @@ class CachedMatchedProperties final : public NoBaseWillBeGarbageCollectedFinaliz
public:
WillBeHeapVector<MatchedProperties> matchedProperties;
MatchRanges ranges;
- RefPtr<LayoutStyle> layoutStyle;
- RefPtr<LayoutStyle> parentLayoutStyle;
+ RefPtr<ComputedStyle> computedStyle;
+ RefPtr<ComputedStyle> parentComputedStyle;
- void set(const LayoutStyle&, const LayoutStyle& parentStyle, const MatchResult&);
+ void set(const ComputedStyle&, const ComputedStyle& parentStyle, const MatchResult&);
void clear();
DEFINE_INLINE_TRACE() { visitor->trace(matchedProperties); }
};
@@ -92,12 +92,12 @@ public:
MatchedPropertiesCache();
const CachedMatchedProperties* find(unsigned hash, const StyleResolverState&, const MatchResult&);
- void add(const LayoutStyle&, const LayoutStyle& parentStyle, unsigned hash, const MatchResult&);
+ void add(const ComputedStyle&, const ComputedStyle& parentStyle, unsigned hash, const MatchResult&);
void clear();
void clearViewportDependent();
- static bool isCacheable(const Element*, const LayoutStyle&, const LayoutStyle& parentStyle);
+ static bool isCacheable(const Element*, const ComputedStyle&, const ComputedStyle& parentStyle);
DECLARE_TRACE();
« no previous file with comments | « Source/core/css/resolver/FontBuilderTest.cpp ('k') | Source/core/css/resolver/MatchedPropertiesCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698