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

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

Issue 2611823003: ABANDONED CL: Changes to compile and pass tests after Big Blink Rename (excluding functions). (Closed)
Patch Set: Inducing merge conflicts to force human review and changes after rename. Created 3 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 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 FilterEffect* effect = FEBlend::create( 154 FilterEffect* effect = FEBlend::create(
155 filter, toWebBlendMode(m_mode->currentValue()->enumValue())); 155 filter, toWebBlendMode(m_mode->currentValue()->enumValue()));
156 FilterEffectVector& inputEffects = effect->inputEffects(); 156 FilterEffectVector& inputEffects = effect->inputEffects();
157 inputEffects.reserveCapacity(2); 157 inputEffects.reserveCapacity(2);
158 inputEffects.append(input1); 158 inputEffects.append(input1);
159 inputEffects.append(input2); 159 inputEffects.append(input2);
160 return effect; 160 return effect;
161 } 161 }
162 162
163 } // namespace blink 163 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/BasicShapes.h ('k') | third_party/WebKit/Source/core/xml/XPathGrammar.y » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698