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

Unified Diff: trunk/Source/core/rendering/RenderBoxModelObject.cpp

Issue 23507002: Revert 156733 "Refactoring DrawLooper so that it can apply shado..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 7 years, 4 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 | « trunk/Source/core/rendering/InlineTextBox.cpp ('k') | trunk/Source/core/rendering/svg/SVGInlineTextBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/rendering/RenderBoxModelObject.cpp
===================================================================
--- trunk/Source/core/rendering/RenderBoxModelObject.cpp (revision 156736)
+++ trunk/Source/core/rendering/RenderBoxModelObject.cpp (working copy)
@@ -2513,10 +2513,10 @@
}
// Draw only the shadow.
- RefPtr<DrawLooper> drawLooper(new DrawLooper);
- drawLooper->addShadow(shadowOffset, shadowBlur, shadowColor,
+ DrawLooper drawLooper;
+ drawLooper.addShadow(shadowOffset, shadowBlur, shadowColor,
DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha);
- context->setDrawLooper(drawLooper.release());
+ context->setDrawLooper(drawLooper);
if (hasBorderRadius) {
RoundedRect influenceRect(shadowRect, border.radii());
« no previous file with comments | « trunk/Source/core/rendering/InlineTextBox.cpp ('k') | trunk/Source/core/rendering/svg/SVGInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698