| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 if (!hasFill) | 279 if (!hasFill) |
| 280 hasFill = svgSelectionStyle.hasFill(); | 280 hasFill = svgSelectionStyle.hasFill(); |
| 281 if (!hasVisibleStroke) | 281 if (!hasVisibleStroke) |
| 282 hasVisibleStroke = svgSelectionStyle.hasVisibleStroke(); | 282 hasVisibleStroke = svgSelectionStyle.hasVisibleStroke(); |
| 283 } else { | 283 } else { |
| 284 selectionStyle = style; | 284 selectionStyle = style; |
| 285 } | 285 } |
| 286 } | 286 } |
| 287 | 287 |
| 288 if (SVGRenderSupport::isRenderingMaskImage(textRenderer)) { | 288 if (SVGRenderSupport::isRenderingClipPathAsMaskImage(textRenderer)) { |
| 289 hasFill = true; | 289 hasFill = true; |
| 290 hasVisibleStroke = false; | 290 hasVisibleStroke = false; |
| 291 } | 291 } |
| 292 | 292 |
| 293 AffineTransform fragmentTransform; | 293 AffineTransform fragmentTransform; |
| 294 unsigned textFragmentsSize = m_textFragments.size(); | 294 unsigned textFragmentsSize = m_textFragments.size(); |
| 295 for (unsigned i = 0; i < textFragmentsSize; ++i) { | 295 for (unsigned i = 0; i < textFragmentsSize; ++i) { |
| 296 SVGTextFragment& fragment = m_textFragments.at(i); | 296 SVGTextFragment& fragment = m_textFragments.at(i); |
| 297 | 297 |
| 298 GraphicsContextStateSaver stateSaver(*paintInfo.context, false); | 298 GraphicsContextStateSaver stateSaver(*paintInfo.context, false); |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); | 754 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); |
| 755 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) | 755 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) |
| 756 return true; | 756 return true; |
| 757 } | 757 } |
| 758 } | 758 } |
| 759 } | 759 } |
| 760 return false; | 760 return false; |
| 761 } | 761 } |
| 762 | 762 |
| 763 } // namespace blink | 763 } // namespace blink |
| OLD | NEW |