| 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |