Chromium Code Reviews| 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; |
| } |