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

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

Issue 34273002: Remove UnusedParam.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 } 426 }
427 427
428 void SVGInlineTextBox::restoreGraphicsContextAfterTextPainting(GraphicsContext*& context, TextRun& textRun) 428 void SVGInlineTextBox::restoreGraphicsContextAfterTextPainting(GraphicsContext*& context, TextRun& textRun)
429 { 429 {
430 releasePaintingResource(context, /* path */0); 430 releasePaintingResource(context, /* path */0);
431 431
432 #if ENABLE(SVG_FONTS) 432 #if ENABLE(SVG_FONTS)
433 TextRun::RenderingContext* renderingContext = textRun.renderingContext(); 433 TextRun::RenderingContext* renderingContext = textRun.renderingContext();
434 if (renderingContext) 434 if (renderingContext)
435 static_cast<SVGTextRunRenderingContext*>(renderingContext)->setActivePai ntingResource(0); 435 static_cast<SVGTextRunRenderingContext*>(renderingContext)->setActivePai ntingResource(0);
436 #else
437 UNUSED_PARAM(textRun);
438 #endif 436 #endif
439 } 437 }
440 438
441 TextRun SVGInlineTextBox::constructTextRun(RenderStyle* style, const SVGTextFrag ment& fragment) const 439 TextRun SVGInlineTextBox::constructTextRun(RenderStyle* style, const SVGTextFrag ment& fragment) const
442 { 440 {
443 ASSERT(style); 441 ASSERT(style);
444 ASSERT(textRenderer()); 442 ASSERT(textRenderer());
445 443
446 RenderText* text = textRenderer(); 444 RenderText* text = textRenderer();
447 ASSERT(text); 445 ASSERT(text);
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 renderer()->updateHitTestResult(result, locationInContainer.poin t() - toLayoutSize(accumulatedOffset)); 746 renderer()->updateHitTestResult(result, locationInContainer.poin t() - toLayoutSize(accumulatedOffset));
749 if (!result.addNodeToRectBasedTestResult(renderer()->node(), req uest, locationInContainer, rect)) 747 if (!result.addNodeToRectBasedTestResult(renderer()->node(), req uest, locationInContainer, rect))
750 return true; 748 return true;
751 } 749 }
752 } 750 }
753 } 751 }
754 return false; 752 return false;
755 } 753 }
756 754
757 } // namespace WebCore 755 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGText.cpp ('k') | Source/core/rendering/svg/SVGRenderSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698