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

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

Issue 16629006: Revert 151996 "Avoid N^2 walk placing renderers when building th..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Update to head Created 7 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/resolver/StyleResolverState.h ('k') | Source/core/dom/ContainerNode.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 9b71aaacac44e84e212eaad2e5f2108c6e9adcd8..ecdf471c76d41c308b1c5b07a8e7d27355b275f4 100644
--- a/Source/core/css/resolver/StyleResolverState.cpp
+++ b/Source/core/css/resolver/StyleResolverState.cpp
@@ -45,7 +45,6 @@ void StyleResolverState::cacheBorderAndBackground()
void StyleResolverState::clear()
{
m_element = 0;
- m_childIndex = 0;
m_styledElement = 0;
m_parentStyle = 0;
m_parentNode = 0;
@@ -55,10 +54,9 @@ void StyleResolverState::clear()
m_pendingSVGDocuments.clear();
}
-void StyleResolverState::initElement(Element* e, int childIndex)
+void StyleResolverState::initElement(Element* e)
{
m_element = e;
- m_childIndex = childIndex;
m_styledElement = e && e->isStyledElement() ? static_cast<StyledElement*>(e) : 0;
m_elementLinkState = e ? e->document()->visitedLinkState()->determineLinkState(e) : NotInsideLink;
}
« no previous file with comments | « Source/core/css/resolver/StyleResolverState.h ('k') | Source/core/dom/ContainerNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698