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

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

Issue 18147020: Remove broken sibling selector optimization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/StyleResolver.cpp ('k') | Source/core/css/resolver/StyleResolverState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolverState.h
diff --git a/Source/core/css/resolver/StyleResolverState.h b/Source/core/css/resolver/StyleResolverState.h
index b8fce1c06eea82f7852039964551e7588a03e575..d0abe28d4f7c41f569da4e8b6718c26fe974ebb0 100644
--- a/Source/core/css/resolver/StyleResolverState.h
+++ b/Source/core/css/resolver/StyleResolverState.h
@@ -44,7 +44,6 @@ WTF_MAKE_NONCOPYABLE(StyleResolverState);
public:
StyleResolverState()
: m_element(0)
- , m_childIndex(0)
, m_styledElement(0)
, m_parentNode(0)
, m_parentStyle(0)
@@ -60,12 +59,11 @@ public:
, m_styleMap(*this, m_elementStyleResources)
{ }
- void initForStyleResolve(Document*, Element*, int childIndex = 0, RenderStyle* parentStyle = 0, RenderRegion* regionForStyling = 0);
+ void initForStyleResolve(Document*, Element*, RenderStyle* parentStyle = 0, RenderRegion* regionForStyling = 0);
void clear();
Document* document() const { return m_element->document(); }
Element* element() const { return m_element; }
- int childIndex() const { return m_childIndex; }
Element* styledElement() const { return m_styledElement; }
void setStyle(PassRefPtr<RenderStyle> style) { m_style = style; }
RenderStyle* style() const { return m_style.get(); }
@@ -142,10 +140,9 @@ public:
bool useSVGZoomRules() const { return m_element && m_element->isSVGElement(); }
private:
- void initElement(Element*, int childIndex);
+ void initElement(Element*);
Element* m_element;
- int m_childIndex;
RefPtr<RenderStyle> m_style;
Element* m_styledElement;
ContainerNode* m_parentNode;
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/css/resolver/StyleResolverState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698