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

Unified Diff: Source/WebCore/platform/graphics/ShadowBlur.cpp

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 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 | « Source/WebCore/platform/graphics/ShadowBlur.h ('k') | Source/WebCore/platform/graphics/SimpleFontData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/graphics/ShadowBlur.cpp
diff --git a/Source/WebCore/platform/graphics/ShadowBlur.cpp b/Source/WebCore/platform/graphics/ShadowBlur.cpp
index cb806578914245fbca783ac7074a149f692e8317..f13649f24968cf859ed644c761ab521fa6757632 100644
--- a/Source/WebCore/platform/graphics/ShadowBlur.cpp
+++ b/Source/WebCore/platform/graphics/ShadowBlur.cpp
@@ -897,22 +897,4 @@ void ShadowBlur::endShadowLayer(GraphicsContext* context)
ScratchBuffer::shared().scheduleScratchBufferPurge();
}
-#if PLATFORM(QT)
-bool ShadowBlur::mustUseShadowBlur(GraphicsContext* context) const
-{
- // We can't avoid ShadowBlur, since the shadow has blur.
- if (type() == BlurShadow)
- return true;
- // We can avoid ShadowBlur and optimize, since we're not drawing on a
- // canvas and box shadows are affected by the transformation matrix.
- if (!shadowsIgnoreTransforms())
- return false;
- // We can avoid ShadowBlur, since there are no transformations to apply to the canvas.
- if (context->getCTM().isIdentity())
- return false;
- // Otherwise, no chance avoiding ShadowBlur.
- return true;
-}
-#endif
-
} // namespace WebCore
« no previous file with comments | « Source/WebCore/platform/graphics/ShadowBlur.h ('k') | Source/WebCore/platform/graphics/SimpleFontData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698