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

Unified Diff: trunk/Source/core/rendering/InlineTextBox.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/EllipsisBox.cpp ('k') | trunk/Source/core/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/rendering/InlineTextBox.cpp
===================================================================
--- trunk/Source/core/rendering/InlineTextBox.cpp (revision 156736)
+++ trunk/Source/core/rendering/InlineTextBox.cpp (working copy)
@@ -396,17 +396,17 @@
Color fillColor = context->fillColor();
if (hasShadow) {
- RefPtr<DrawLooper> drawLooper(new DrawLooper);
+ DrawLooper drawLooper;
do {
int shadowX = horizontal ? shadow->x() : shadow->y();
int shadowY = horizontal ? shadow->y() : -shadow->x();
FloatSize offset(shadowX, shadowY);
- drawLooper->addShadow(offset, shadow->blur(),
+ drawLooper.addShadow(offset, shadow->blur(),
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);
}
TextRunPaintInfo textRunPaintInfo(textRun);
« no previous file with comments | « trunk/Source/core/rendering/EllipsisBox.cpp ('k') | trunk/Source/core/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698