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

Unified Diff: Source/core/paint/ViewPainter.cpp

Issue 840733004: Replace setCompositeOperation(CompositeOperator, WebBlendMode) with setCompositeOperation(SkXfermod… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename compositeOperationDeprecated Created 5 years, 11 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 | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/rendering/svg/SVGRenderingContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ViewPainter.cpp
diff --git a/Source/core/paint/ViewPainter.cpp b/Source/core/paint/ViewPainter.cpp
index 02114ae5c92768e5635b4fc3a439b1362d10f9e8..40c13b323b2f6fa4d5fc14ac13c802ac610a2099 100644
--- a/Source/core/paint/ViewPainter.cpp
+++ b/Source/core/paint/ViewPainter.cpp
@@ -75,10 +75,10 @@ void ViewPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo)
if (!m_renderView.frameView()->isTransparent()) {
Color baseColor = m_renderView.frameView()->baseBackgroundColor();
if (baseColor.alpha()) {
- CompositeOperator previousOperator = paintInfo.context->compositeOperation();
- paintInfo.context->setCompositeOperation(CompositeCopy);
+ SkXfermode::Mode previousOperation = paintInfo.context->compositeOperation();
+ paintInfo.context->setCompositeOperation(SkXfermode::kSrc_Mode);
paintInfo.context->fillRect(paintInfo.rect, baseColor);
- paintInfo.context->setCompositeOperation(previousOperator);
+ paintInfo.context->setCompositeOperation(previousOperation);
} else {
paintInfo.context->clearRect(paintInfo.rect);
}
« no previous file with comments | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/rendering/svg/SVGRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698