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

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: Remove unused variables from signatures 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 renderer()->updateHitTestResult(result, locationInContainer.poin t() - toLayoutSize(accumulatedOffset)); 745 renderer()->updateHitTestResult(result, locationInContainer.poin t() - toLayoutSize(accumulatedOffset));
748 if (!result.addNodeToRectBasedTestResult(renderer()->node(), req uest, locationInContainer, rect)) 746 if (!result.addNodeToRectBasedTestResult(renderer()->node(), req uest, locationInContainer, rect))
749 return true; 747 return true;
750 } 748 }
751 } 749 }
752 } 750 }
753 return false; 751 return false;
754 } 752 }
755 753
756 } // namespace WebCore 754 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698