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

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

Issue 418573003: Remove check from SharedStyleFinder::canShareStyleWithElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/SharedStyleFinder.cpp
diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp
index 76f97e0554bb043b5531ef38b00184fdb94228b3..789c7315cea5feb60adbd9b5eade79c0928d9ffb 100644
--- a/Source/core/css/resolver/SharedStyleFinder.cpp
+++ b/Source/core/css/resolver/SharedStyleFinder.cpp
@@ -234,10 +234,7 @@ bool SharedStyleFinder::canShareStyleWithElement(Element& candidate) const
return false;
bool isControl = candidate.isFormControlElement();
-
- if (isControl != element().isFormControlElement())
- return false;
-
+ ASSERT(isControl == element().isFormControlElement());
if (isControl && !canShareStyleWithControl(candidate))
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698