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

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

Issue 2749273004: Remove incorrect styleResolver() checks. (Closed)
Patch Set: Created 3 years, 9 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 | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 0c31e20d226e9dc20127852fee2a8992a415a048..04e85d716498688710b0384aaeff94a8ff3d2557 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1328,12 +1328,6 @@ void Element::attributeChanged(const AttributeModificationParams& params) {
invalidateNodeListCachesInAncestors(&name, this);
- // If there is currently no StyleResolver, we can't be sure that this
- // attribute change won't affect style.
- if (!document().styleResolver())
- setNeedsStyleRecalc(SubtreeStyleChange,
- StyleChangeReasonForTracing::fromAttribute(name));
-
if (isConnected()) {
if (AXObjectCache* cache = document().existingAXObjectCache())
cache->handleAttributeChanged(name, this);
@@ -2366,9 +2360,6 @@ void Element::checkForEmptyStyleChange() {
return;
if (!inActiveDocument())
return;
- if (!document().styleResolver())
- return;
-
if (!style ||
(styleAffectedByEmpty() && (!style->emptyState() || hasChildren())))
pseudoStateChanged(CSSSelector::PseudoEmpty);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698