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