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

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

Issue 1280423002: CSS4: Implement :placeholder-shown pseudo class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 years, 4 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
Index: Source/core/css/resolver/SharedStyleFinder.cpp
diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp
index 8bee74f26697bbc567fb0fe408b0f8666b558224..75d3568ebc8a8b37453bf7f48c7785d2fbe12090 100644
--- a/Source/core/css/resolver/SharedStyleFinder.cpp
+++ b/Source/core/css/resolver/SharedStyleFinder.cpp
@@ -95,6 +95,9 @@ bool SharedStyleFinder::canShareStyleWithControl(Element& candidate) const
return false;
}
+ if (candidateInput.isPlaceholderVisible() != thisInput.isPlaceholderVisible())
+ return false;
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698