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 16 matching lines...) Expand all Loading... |
27 #include "core/editing/Editor.h" | 27 #include "core/editing/Editor.h" |
28 #include "core/frame/LocalFrame.h" | 28 #include "core/frame/LocalFrame.h" |
29 #include "core/paint/SVGInlineTextBoxPainter.h" | 29 #include "core/paint/SVGInlineTextBoxPainter.h" |
30 #include "core/rendering/HitTestResult.h" | 30 #include "core/rendering/HitTestResult.h" |
31 #include "core/rendering/InlineFlowBox.h" | 31 #include "core/rendering/InlineFlowBox.h" |
32 #include "core/rendering/PaintInfo.h" | 32 #include "core/rendering/PaintInfo.h" |
33 #include "core/rendering/PointerEventsHitRules.h" | 33 #include "core/rendering/PointerEventsHitRules.h" |
34 #include "core/rendering/RenderInline.h" | 34 #include "core/rendering/RenderInline.h" |
35 #include "core/rendering/RenderTheme.h" | 35 #include "core/rendering/RenderTheme.h" |
36 #include "core/rendering/svg/RenderSVGInlineText.h" | 36 #include "core/rendering/svg/RenderSVGInlineText.h" |
37 #include "core/rendering/svg/RenderSVGResource.h" | |
38 #include "core/rendering/svg/RenderSVGResourceSolidColor.h" | |
39 #include "core/rendering/svg/SVGTextRunRenderingContext.h" | 37 #include "core/rendering/svg/SVGTextRunRenderingContext.h" |
40 #include "platform/FloatConversion.h" | 38 #include "platform/FloatConversion.h" |
41 #include "platform/fonts/FontCache.h" | 39 #include "platform/fonts/FontCache.h" |
42 #include "platform/graphics/GraphicsContextStateSaver.h" | |
43 | 40 |
44 namespace blink { | 41 namespace blink { |
45 | 42 |
46 struct ExpectedSVGInlineTextBoxSize : public InlineTextBox { | 43 struct ExpectedSVGInlineTextBoxSize : public InlineTextBox { |
47 float float1; | 44 float float1; |
48 uint32_t bitfields : 1; | 45 uint32_t bitfields : 1; |
49 Vector<SVGTextFragment> vector; | 46 Vector<SVGTextFragment> vector; |
50 }; | 47 }; |
51 | 48 |
52 COMPILE_ASSERT(sizeof(SVGInlineTextBox) == sizeof(ExpectedSVGInlineTextBoxSize),
SVGInlineTextBox_is_not_of_expected_size); | 49 COMPILE_ASSERT(sizeof(SVGInlineTextBox) == sizeof(ExpectedSVGInlineTextBoxSize),
SVGInlineTextBox_is_not_of_expected_size); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); | 292 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); |
296 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) | 293 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) |
297 return true; | 294 return true; |
298 } | 295 } |
299 } | 296 } |
300 } | 297 } |
301 return false; | 298 return false; |
302 } | 299 } |
303 | 300 |
304 } // namespace blink | 301 } // namespace blink |
OLD | NEW |