| 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 return; | 666 return; |
| 667 } | 667 } |
| 668 | 668 |
| 669 // Eventually draw text using regular style until the start position of the
selection | 669 // Eventually draw text using regular style until the start position of the
selection |
| 670 if (startPosition > 0 && !paintSelectedTextOnly) | 670 if (startPosition > 0 && !paintSelectedTextOnly) |
| 671 paintTextWithShadows(context, style, textRun, fragment, 0, startPosition
, resourceMode); | 671 paintTextWithShadows(context, style, textRun, fragment, 0, startPosition
, resourceMode); |
| 672 | 672 |
| 673 // Draw text using selection style from the start to the end position of the
selection | 673 // Draw text using selection style from the start to the end position of the
selection |
| 674 if (style != selectionStyle) { | 674 if (style != selectionStyle) { |
| 675 StyleDifference diff; | 675 StyleDifference diff; |
| 676 diff.setNeedsRepaintObject(); | 676 diff.setNeedsPaintInvalidationObject(); |
| 677 SVGResourcesCache::clientStyleChanged(&parent()->renderer(), diff, selec
tionStyle); | 677 SVGResourcesCache::clientStyleChanged(&parent()->renderer(), diff, selec
tionStyle); |
| 678 } | 678 } |
| 679 | 679 |
| 680 paintTextWithShadows(context, selectionStyle, textRun, fragment, startPositi
on, endPosition, resourceMode); | 680 paintTextWithShadows(context, selectionStyle, textRun, fragment, startPositi
on, endPosition, resourceMode); |
| 681 | 681 |
| 682 if (style != selectionStyle) { | 682 if (style != selectionStyle) { |
| 683 StyleDifference diff; | 683 StyleDifference diff; |
| 684 diff.setNeedsRepaintObject(); | 684 diff.setNeedsPaintInvalidationObject(); |
| 685 SVGResourcesCache::clientStyleChanged(&parent()->renderer(), diff, selec
tionStyle); | 685 SVGResourcesCache::clientStyleChanged(&parent()->renderer(), diff, selec
tionStyle); |
| 686 } | 686 } |
| 687 | 687 |
| 688 // Eventually draw text using regular style from the end position of the sel
ection to the end of the current chunk part | 688 // Eventually draw text using regular style from the end position of the sel
ection to the end of the current chunk part |
| 689 if (endPosition < static_cast<int>(fragment.length) && !paintSelectedTextOnl
y) | 689 if (endPosition < static_cast<int>(fragment.length) && !paintSelectedTextOnl
y) |
| 690 paintTextWithShadows(context, style, textRun, fragment, endPosition, fra
gment.length, resourceMode); | 690 paintTextWithShadows(context, style, textRun, fragment, endPosition, fra
gment.length, resourceMode); |
| 691 } | 691 } |
| 692 | 692 |
| 693 void SVGInlineTextBox::paintDocumentMarker(GraphicsContext*, const FloatPoint&,
DocumentMarker*, RenderStyle*, const Font&, bool) | 693 void SVGInlineTextBox::paintDocumentMarker(GraphicsContext*, const FloatPoint&,
DocumentMarker*, RenderStyle*, const Font&, bool) |
| 694 { | 694 { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); | 793 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); |
| 794 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) | 794 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) |
| 795 return true; | 795 return true; |
| 796 } | 796 } |
| 797 } | 797 } |
| 798 } | 798 } |
| 799 return false; | 799 return false; |
| 800 } | 800 } |
| 801 | 801 |
| 802 } // namespace blink | 802 } // namespace blink |
| OLD | NEW |