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

Unified Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 187813004: Use outlineBox if we have an outline or shadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: Source/core/rendering/style/RenderStyle.cpp
diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
index 75558d6645ce33b6fce395b5cdfca14d44e878f5..b65b1e6f321cc3ef564619b9e084ca6e1beeacca 100644
--- a/Source/core/rendering/style/RenderStyle.cpp
+++ b/Source/core/rendering/style/RenderStyle.cpp
@@ -908,6 +908,11 @@ void RenderStyle::setTextShadow(PassRefPtr<ShadowList> s)
rareInheritedData.access()->textShadow = s;
}
+bool RenderStyle::hasBoxShadow() const
+{
+ return boxShadow() && boxShadow()->shadows().size() > 0;
+}
+
void RenderStyle::setBoxShadow(PassRefPtr<ShadowList> s)
{
rareNonInheritedData.access()->m_boxShadow = s;
« Source/core/rendering/RenderBlock.h ('K') | « Source/core/rendering/style/RenderStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698