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

Unified Diff: trunk/Source/core/rendering/svg/SVGInlineTextBox.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/RenderBoxModelObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/rendering/svg/SVGInlineTextBox.cpp
===================================================================
--- trunk/Source/core/rendering/svg/SVGInlineTextBox.cpp (revision 156736)
+++ trunk/Source/core/rendering/svg/SVGInlineTextBox.cpp (working copy)
@@ -638,14 +638,14 @@
}
if (hasShadow) {
- RefPtr<DrawLooper> drawLooper(new DrawLooper);
+ DrawLooper drawLooper;
do {
FloatSize offset(shadow->x(), shadow->y());
- drawLooper->addShadow(offset, shadow->blur(), textRenderer->resolveColor(shadow->color(), Color::stdShadowColor),
+ drawLooper.addShadow(offset, shadow->blur(), textRenderer->resolveColor(shadow->color(), Color::stdShadowColor),
DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowRespectsAlpha);
} while ((shadow = shadow->next()));
- drawLooper->addUnmodifiedContent();
- context->setDrawLooper(drawLooper.release());
+ drawLooper.addUnmodifiedContent();
+ context->setDrawLooper(drawLooper);
}
if (prepareGraphicsContextForTextPainting(context, scalingFactor, textRun, style)) {
« no previous file with comments | « trunk/Source/core/rendering/RenderBoxModelObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698