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

Unified Diff: sky/engine/core/rendering/style/ShadowList.cpp

Issue 688233002: Remove writing mode code from the linebox tree. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: merge to ToT Created 6 years, 2 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 | « sky/engine/core/rendering/style/ShadowList.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/style/ShadowList.cpp
diff --git a/sky/engine/core/rendering/style/ShadowList.cpp b/sky/engine/core/rendering/style/ShadowList.cpp
index d997e99cc6fe0cd69c1e7e628198388516fb8c5c..233b0ab44772985756c1dd1bfe40397b988da5fd 100644
--- a/sky/engine/core/rendering/style/ShadowList.cpp
+++ b/sky/engine/core/rendering/style/ShadowList.cpp
@@ -98,14 +98,12 @@ PassRefPtr<ShadowList> ShadowList::blend(const ShadowList* from, const ShadowLis
return ShadowList::adopt(shadows);
}
-PassOwnPtr<DrawLooperBuilder> ShadowList::createDrawLooper(DrawLooperBuilder::ShadowAlphaMode alphaMode, bool isHorizontal) const
+PassOwnPtr<DrawLooperBuilder> ShadowList::createDrawLooper(DrawLooperBuilder::ShadowAlphaMode alphaMode) const
{
OwnPtr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create();
for (size_t i = shadows().size(); i--; ) {
const ShadowData& shadow = shadows()[i];
- float shadowX = isHorizontal ? shadow.x() : shadow.y();
- float shadowY = isHorizontal ? shadow.y() : -shadow.x();
- drawLooperBuilder->addShadow(FloatSize(shadowX, shadowY), shadow.blur(), shadow.color(),
+ drawLooperBuilder->addShadow(FloatSize(shadow.x(), shadow.y()), shadow.blur(), shadow.color(),
DrawLooperBuilder::ShadowRespectsTransforms, alphaMode);
}
drawLooperBuilder->addUnmodifiedContent();
« no previous file with comments | « sky/engine/core/rendering/style/ShadowList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698