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

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 140673006: Fix repaint on :hover for empty elements with a border. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix pdr's issues. Created 6 years, 11 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 | « LayoutTests/fast/repaint/hover-pseudo-borders-whitespace-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index d1d495c169724088b5fab5544249eceb017216c8..629e5a945f78550484158c0f78f68178fe206936 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -1891,6 +1891,8 @@ void RenderObject::setPseudoStyle(PassRefPtr<RenderStyle> pseudoStyle)
inline bool RenderObject::hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor() const
{
+ if (style()->hasBorder() || style()->hasOutline())
+ return true;
for (const RenderObject* r = firstChild(); r; r = r->nextSibling()) {
if (r->isText() && !toRenderText(r)->isAllCollapsibleWhitespace())
return true;
« no previous file with comments | « LayoutTests/fast/repaint/hover-pseudo-borders-whitespace-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698