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

Unified Diff: Source/core/dom/Element.cpp

Issue 1181183004: Recalc list items for <select> before updating style for the select. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Call recalcListItems directly. Created 5 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 | « no previous file | Source/core/html/HTMLSelectElement.h » ('j') | Source/core/html/HTMLSelectElement.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 4d361113e4fa9b9249b67d87c85b5c6477805ac0..bf897807466ee2d64ced0e9b67cd9a18595b45fe 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1754,8 +1754,10 @@ ElementShadow& Element::ensureShadow()
void Element::pseudoStateChanged(CSSSelector::PseudoType pseudo)
{
- StyleResolver* styleResolver = document().styleResolver();
+ if (document().inStyleRecalc())
ojan 2015/06/19 01:05:02 Add a comment explaining why we do this?
+ return;
+ StyleResolver* styleResolver = document().styleResolver();
if (inActiveDocument() && styleResolver && styleChangeType() < SubtreeStyleChange)
document().styleEngine().pseudoStateChangedForElement(pseudo, *this);
}
« no previous file with comments | « no previous file | Source/core/html/HTMLSelectElement.h » ('j') | Source/core/html/HTMLSelectElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698