| Index: sky/engine/core/css/resolver/StyleResolver.h
|
| diff --git a/sky/engine/core/css/resolver/StyleResolver.h b/sky/engine/core/css/resolver/StyleResolver.h
|
| index 480dcecacfdbbf6ce38ff154d5f7ba9ad56666b8..aee85869348bf0b5ccfa596d1a212b27d60af223 100644
|
| --- a/sky/engine/core/css/resolver/StyleResolver.h
|
| +++ b/sky/engine/core/css/resolver/StyleResolver.h
|
| @@ -65,8 +65,7 @@ class StyleRuleKeyframes;
|
| class MatchResult;
|
|
|
| const unsigned styleSharingListSize = 15;
|
| -const unsigned styleSharingMaxDepth = 32;
|
| -typedef Deque<RawPtr<Element>, styleSharingListSize> StyleSharingList;
|
| +typedef Deque<Element*, styleSharingListSize> StyleSharingList;
|
|
|
| struct CSSPropertyValue {
|
| STACK_ALLOCATED();
|
| @@ -126,7 +125,7 @@ public:
|
|
|
| void notifyResizeForViewportUnits();
|
|
|
| - StyleSharingList& styleSharingList();
|
| + StyleSharingList& styleSharingList() { return m_styleSharingList; }
|
|
|
| void addToStyleSharingList(Element&);
|
| void clearStyleSharingList();
|
| @@ -141,9 +140,6 @@ public:
|
| unsigned accessCount() const { return m_accessCount; }
|
| void didAccess() { ++m_accessCount; }
|
|
|
| - void increaseStyleSharingDepth() { ++m_styleSharingDepth; }
|
| - void decreaseStyleSharingDepth() { --m_styleSharingDepth; }
|
| -
|
| private:
|
| // FIXME: This should probably go away, folded into FontBuilder.
|
| void updateFont(StyleResolverState&);
|
| @@ -191,8 +187,7 @@ private:
|
|
|
| StyleResourceLoader m_styleResourceLoader;
|
|
|
| - unsigned m_styleSharingDepth;
|
| - Vector<OwnPtr<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLists;
|
| + StyleSharingList m_styleSharingList;
|
|
|
| OwnPtr<StyleResolverStats> m_styleResolverStats;
|
| OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
|
|
|