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

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

Issue 767543003: Remove unused functions from RenderStyle. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 | « Source/core/rendering/style/RenderStyle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/RenderStyle.cpp
diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
index 4aaf56bfab85abfe8fb4d4b841e8a9566d5dd275..54a825fd566b10807b62ba441c5b202ff970afda 100644
--- a/Source/core/rendering/style/RenderStyle.cpp
+++ b/Source/core/rendering/style/RenderStyle.cpp
@@ -1286,28 +1286,6 @@ void RenderStyle::getShadowExtent(const ShadowList* shadowList, LayoutUnit &top,
}
}
-LayoutBoxExtent RenderStyle::getShadowInsetExtent(const ShadowList* shadowList) const
-{
- LayoutUnit top = 0;
- LayoutUnit right = 0;
- LayoutUnit bottom = 0;
- LayoutUnit left = 0;
-
- size_t shadowCount = shadowList ? shadowList->shadows().size() : 0;
- for (size_t i = 0; i < shadowCount; ++i) {
- const ShadowData& shadow = shadowList->shadows()[i];
- if (shadow.style() == Normal)
- continue;
- float blurAndSpread = shadow.blur() + shadow.spread();
- top = std::max<LayoutUnit>(top, shadow.y() + blurAndSpread);
- right = std::min<LayoutUnit>(right, shadow.x() - blurAndSpread);
- bottom = std::min<LayoutUnit>(bottom, shadow.y() - blurAndSpread);
- left = std::max<LayoutUnit>(left, shadow.x() + blurAndSpread);
- }
-
- return LayoutBoxExtent(top, right, bottom, left);
-}
-
void RenderStyle::getShadowHorizontalExtent(const ShadowList* shadowList, LayoutUnit &left, LayoutUnit &right) const
{
left = 0;
« no previous file with comments | « Source/core/rendering/style/RenderStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698