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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 10 matching lines...) Expand all
21 #include "core/svg/SVGFEBlendElement.h" 21 #include "core/svg/SVGFEBlendElement.h"
22 22
23 #include "core/SVGNames.h" 23 #include "core/SVGNames.h"
24 #include "core/svg/graphics/filters/SVGFilterBuilder.h" 24 #include "core/svg/graphics/filters/SVGFilterBuilder.h"
25 #include "platform/graphics/filters/FEBlend.h" 25 #include "platform/graphics/filters/FEBlend.h"
26 26
27 namespace blink { 27 namespace blink {
28 28
29 static WebBlendMode toWebBlendMode(SVGFEBlendElement::Mode mode) { 29 static WebBlendMode toWebBlendMode(SVGFEBlendElement::Mode mode) {
30 #define MAP_BLEND_MODE(MODENAME) \ 30 #define MAP_BLEND_MODE(MODENAME) \
31 case SVGFEBlendElement::Mode##MODENAME: \ 31 case SVGFEBlendElement::kMode##MODENAME: \
32 return WebBlendMode##MODENAME 32 return kWebBlendMode##MODENAME
33 33
34 switch (mode) { 34 switch (mode) {
35 MAP_BLEND_MODE(Normal); 35 MAP_BLEND_MODE(Normal);
36 MAP_BLEND_MODE(Multiply); 36 MAP_BLEND_MODE(Multiply);
37 MAP_BLEND_MODE(Screen); 37 MAP_BLEND_MODE(Screen);
38 MAP_BLEND_MODE(Darken); 38 MAP_BLEND_MODE(Darken);
39 MAP_BLEND_MODE(Lighten); 39 MAP_BLEND_MODE(Lighten);
40 MAP_BLEND_MODE(Overlay); 40 MAP_BLEND_MODE(Overlay);
41 MAP_BLEND_MODE(ColorDodge); 41 MAP_BLEND_MODE(ColorDodge);
42 MAP_BLEND_MODE(ColorBurn); 42 MAP_BLEND_MODE(ColorBurn);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 FilterEffect* effect = FEBlend::create( 158 FilterEffect* effect = FEBlend::create(
159 filter, toWebBlendMode(m_mode->currentValue()->enumValue())); 159 filter, toWebBlendMode(m_mode->currentValue()->enumValue()));
160 FilterEffectVector& inputEffects = effect->inputEffects(); 160 FilterEffectVector& inputEffects = effect->inputEffects();
161 inputEffects.reserveCapacity(2); 161 inputEffects.reserveCapacity(2);
162 inputEffects.push_back(input1); 162 inputEffects.push_back(input1);
163 inputEffects.push_back(input2); 163 inputEffects.push_back(input2);
164 return effect; 164 return effect;
165 } 165 }
166 166
167 } // namespace blink 167 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/BasicShapes.h ('k') | third_party/WebKit/Source/core/svg/SVGLengthContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698