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

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

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/StyleResolverState.h ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolverState.cpp
diff --git a/Source/core/css/resolver/StyleResolverState.cpp b/Source/core/css/resolver/StyleResolverState.cpp
index 708c2a849a3487acddc1951face85dbe2d356a4a..32d0fae7d390923816d43847d9fa6d0cea84c672 100644
--- a/Source/core/css/resolver/StyleResolverState.cpp
+++ b/Source/core/css/resolver/StyleResolverState.cpp
@@ -34,7 +34,6 @@ namespace WebCore {
void StyleResolverState::clear()
{
m_element = 0;
- m_childIndex = 0;
m_styledElement = 0;
m_parentStyle = 0;
m_parentNode = 0;
@@ -42,7 +41,7 @@ void StyleResolverState::clear()
m_elementStyleResources.clear();
}
-void StyleResolverState::initElement(Element* element, int childIndex)
+void StyleResolverState::initElement(Element* element)
{
if (m_element == element)
return;
@@ -58,9 +57,9 @@ void StyleResolverState::initElement(Element* element, int childIndex)
element->document()->setWritingModeSetOnDocumentElement(false);
}
-void StyleResolverState::initForStyleResolve(Document* document, Element* e, int childIndex, RenderStyle* parentStyle, RenderRegion* regionForStyling)
+void StyleResolverState::initForStyleResolve(Document* document, Element* e, RenderStyle* parentStyle, RenderRegion* regionForStyling)
{
- initElement(e, childIndex);
+ initElement(e);
m_regionForStyling = regionForStyling;
« no previous file with comments | « Source/core/css/resolver/StyleResolverState.h ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698