| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 6 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "platform/text/TextStream.h" | 31 #include "platform/text/TextStream.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 FEBlend::FEBlend(Filter* filter, WebBlendMode mode) | 35 FEBlend::FEBlend(Filter* filter, WebBlendMode mode) |
| 36 : FilterEffect(filter) | 36 : FilterEffect(filter) |
| 37 , m_mode(mode) | 37 , m_mode(mode) |
| 38 { | 38 { |
| 39 } | 39 } |
| 40 | 40 |
| 41 PassRefPtr<FEBlend> FEBlend::create(Filter* filter, WebBlendMode mode) | 41 PassRefPtrWillBeRawPtr<FEBlend> FEBlend::create(Filter* filter, WebBlendMode mod
e) |
| 42 { | 42 { |
| 43 return adoptRef(new FEBlend(filter, mode)); | 43 return adoptRefWillBeNoop(new FEBlend(filter, mode)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 WebBlendMode FEBlend::blendMode() const | 46 WebBlendMode FEBlend::blendMode() const |
| 47 { | 47 { |
| 48 return m_mode; | 48 return m_mode; |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool FEBlend::setBlendMode(WebBlendMode mode) | 51 bool FEBlend::setBlendMode(WebBlendMode mode) |
| 52 { | 52 { |
| 53 if (m_mode == mode) | 53 if (m_mode == mode) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 70 writeIndent(ts, indent); | 70 writeIndent(ts, indent); |
| 71 ts << "[feBlend"; | 71 ts << "[feBlend"; |
| 72 FilterEffect::externalRepresentation(ts); | 72 FilterEffect::externalRepresentation(ts); |
| 73 ts << " mode=\"" << (m_mode == WebBlendModeNormal ? "normal" : compositeOper
atorName(CompositeSourceOver, m_mode)) << "\"]\n"; | 73 ts << " mode=\"" << (m_mode == WebBlendModeNormal ? "normal" : compositeOper
atorName(CompositeSourceOver, m_mode)) << "\"]\n"; |
| 74 inputEffect(0)->externalRepresentation(ts, indent + 1); | 74 inputEffect(0)->externalRepresentation(ts, indent + 1); |
| 75 inputEffect(1)->externalRepresentation(ts, indent + 1); | 75 inputEffect(1)->externalRepresentation(ts, indent + 1); |
| 76 return ts; | 76 return ts; |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| OLD | NEW |