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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 m_paintingResource->applyResource(&m_renderer, style, context, resou
rceModeFlags); | 378 m_paintingResource->applyResource(&m_renderer, style, context, resou
rceModeFlags); |
379 } | 379 } |
380 } | 380 } |
381 return true; | 381 return true; |
382 } | 382 } |
383 | 383 |
384 void PaintingResourceScope::releasePaintingResource(GraphicsContext*& context) | 384 void PaintingResourceScope::releasePaintingResource(GraphicsContext*& context) |
385 { | 385 { |
386 ASSERT(m_paintingResource); | 386 ASSERT(m_paintingResource); |
387 | 387 |
388 m_paintingResource->postApplyResource(&m_renderer, context); | 388 m_paintingResource->postApplyResource(context); |
389 m_paintingResource = 0; | 389 m_paintingResource = 0; |
390 } | 390 } |
391 | 391 |
392 TextRun SVGInlineTextBox::constructTextRun(RenderStyle* style, const SVGTextFrag
ment& fragment) const | 392 TextRun SVGInlineTextBox::constructTextRun(RenderStyle* style, const SVGTextFrag
ment& fragment) const |
393 { | 393 { |
394 ASSERT(style); | 394 ASSERT(style); |
395 | 395 |
396 RenderText* text = &renderer(); | 396 RenderText* text = &renderer(); |
397 | 397 |
398 // FIXME(crbug.com/264211): This should not be necessary but can occur if we | 398 // FIXME(crbug.com/264211): This should not be necessary but can occur if we |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); | 754 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); |
755 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) | 755 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) |
756 return true; | 756 return true; |
757 } | 757 } |
758 } | 758 } |
759 } | 759 } |
760 return false; | 760 return false; |
761 } | 761 } |
762 | 762 |
763 } // namespace blink | 763 } // namespace blink |
OLD | NEW |