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

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

Issue 16357011: Remove support for -webkit-color-correction (which we've never supported on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolve merge conflicts, obey brace style changes Created 7 years, 6 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) 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 fragmentStartPosition = startPosition; 237 fragmentStartPosition = startPosition;
238 fragmentEndPosition = endPosition; 238 fragmentEndPosition = endPosition;
239 if (!mapStartEndPositionsIntoFragmentCoordinates(fragment, fragmentStart Position, fragmentEndPosition)) 239 if (!mapStartEndPositionsIntoFragmentCoordinates(fragment, fragmentStart Position, fragmentEndPosition))
240 continue; 240 continue;
241 241
242 GraphicsContextStateSaver stateSaver(*paintInfo.context); 242 GraphicsContextStateSaver stateSaver(*paintInfo.context);
243 fragment.buildFragmentTransform(fragmentTransform); 243 fragment.buildFragmentTransform(fragmentTransform);
244 if (!fragmentTransform.isIdentity()) 244 if (!fragmentTransform.isIdentity())
245 paintInfo.context->concatCTM(fragmentTransform); 245 paintInfo.context->concatCTM(fragmentTransform);
246 246
247 paintInfo.context->setFillColor(backgroundColor, style->colorSpace()); 247 paintInfo.context->setFillColor(backgroundColor);
248 paintInfo.context->fillRect(selectionRectForTextFragment(fragment, fragm entStartPosition, fragmentEndPosition, style), backgroundColor, style->colorSpac e()); 248 paintInfo.context->fillRect(selectionRectForTextFragment(fragment, fragm entStartPosition, fragmentEndPosition, style), backgroundColor);
249 249
250 m_paintingResourceMode = ApplyToDefaultMode; 250 m_paintingResourceMode = ApplyToDefaultMode;
251 } 251 }
252 252
253 ASSERT(!m_paintingResource); 253 ASSERT(!m_paintingResource);
254 } 254 }
255 255
256 void SVGInlineTextBox::paint(PaintInfo& paintInfo, const LayoutPoint&, LayoutUni t, LayoutUnit) 256 void SVGInlineTextBox::paint(PaintInfo& paintInfo, const LayoutPoint&, LayoutUni t, LayoutUnit)
257 { 257 {
258 ASSERT(paintInfo.shouldPaintWithinRoot(renderer())); 258 ASSERT(paintInfo.shouldPaintWithinRoot(renderer()));
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 renderer()->updateHitTestResult(result, locationInContainer.poin t() - toLayoutSize(accumulatedOffset)); 724 renderer()->updateHitTestResult(result, locationInContainer.poin t() - toLayoutSize(accumulatedOffset));
725 if (!result.addNodeToRectBasedTestResult(renderer()->node(), req uest, locationInContainer, rect)) 725 if (!result.addNodeToRectBasedTestResult(renderer()->node(), req uest, locationInContainer, rect))
726 return true; 726 return true;
727 } 727 }
728 } 728 }
729 } 729 }
730 return false; 730 return false;
731 } 731 }
732 732
733 } // namespace WebCore 733 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp ('k') | Source/core/rendering/svg/SVGRenderingContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698