| 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) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 << "yChannelSelector=\"" << m_yChannelSelector << "\"]\n"; | 153 << "yChannelSelector=\"" << m_yChannelSelector << "\"]\n"; |
| 154 inputEffect(0)->externalRepresentation(ts, indent + 1); | 154 inputEffect(0)->externalRepresentation(ts, indent + 1); |
| 155 inputEffect(1)->externalRepresentation(ts, indent + 1); | 155 inputEffect(1)->externalRepresentation(ts, indent + 1); |
| 156 return ts; | 156 return ts; |
| 157 } | 157 } |
| 158 | 158 |
| 159 FloatRect FEDisplacementMap::determineAbsolutePaintRect(const FloatRect& request
edRect) | 159 FloatRect FEDisplacementMap::determineAbsolutePaintRect(const FloatRect& request
edRect) |
| 160 { | 160 { |
| 161 FloatRect rect = requestedRect; | 161 FloatRect rect = requestedRect; |
| 162 if (clipsToBounds()) | 162 if (clipsToBounds()) |
| 163 rect.intersect(maxEffectRect()); | 163 rect.intersect(absoluteBounds()); |
| 164 | 164 |
| 165 if (absolutePaintRect().contains(enclosingIntRect(rect))) | 165 if (absolutePaintRect().contains(enclosingIntRect(rect))) |
| 166 return rect; | 166 return rect; |
| 167 | 167 |
| 168 rect = mapPaintRect(rect, false); | 168 rect = mapPaintRect(rect, false); |
| 169 rect = inputEffect(0)->determineAbsolutePaintRect(rect); | 169 rect = inputEffect(0)->determineAbsolutePaintRect(rect); |
| 170 rect = mapPaintRect(rect, true); | 170 rect = mapPaintRect(rect, true); |
| 171 rect.intersect(requestedRect); | 171 rect.intersect(requestedRect); |
| 172 | 172 |
| 173 addAbsolutePaintRect(rect); | 173 addAbsolutePaintRect(rect); |
| 174 return rect; | 174 return rect; |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace blink | 177 } // namespace blink |
| OLD | NEW |