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

Side by Side Diff: Source/core/rendering/svg/SVGInlineTextBox.cpp

Issue 623243003: Rename isRenderingMaskImage to isRenderingClipPathAsMaskImage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: -> PaintBehaviorRenderingClipPathAsMask. Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp ('k') | Source/core/rendering/svg/SVGRenderSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698