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

Unified Diff: trunk/Source/core/rendering/EllipsisBox.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
Index: trunk/Source/core/rendering/EllipsisBox.cpp
===================================================================
--- trunk/Source/core/rendering/EllipsisBox.cpp (revision 156736)
+++ trunk/Source/core/rendering/EllipsisBox.cpp (working copy)
@@ -56,17 +56,17 @@
const ShadowData* shadow = context->printing() ? 0 : style->textShadow();
bool hasShadow = shadow;
if (hasShadow) {
- RefPtr<DrawLooper> drawLooper(new DrawLooper);
+ DrawLooper drawLooper;
do {
int shadowX = isHorizontal() ? shadow->x() : shadow->y();
int shadowY = isHorizontal() ? shadow->y() : -shadow->x();
FloatSize offset(shadowX, shadowY);
- drawLooper->addShadow(offset, shadow->blur(),
+ drawLooper.addShadow(offset, shadow->blur(),
m_renderer->resolveColor(shadow->color(), Color::stdShadowColor),
DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha);
} while ((shadow = shadow->next()));
- drawLooper->addUnmodifiedContent();
- context->setDrawLooper(drawLooper.release());
+ drawLooper.addUnmodifiedContent();
+ context->setDrawLooper(drawLooper);
}
// FIXME: Why is this always LTR? Fix by passing correct text run flags below.
« no previous file with comments | « trunk/Source/core/platform/graphics/skia/NativeImageSkia.cpp ('k') | trunk/Source/core/rendering/InlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698