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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 struct ExpectedSVGInlineTextBoxSize : public InlineTextBox { | 46 struct ExpectedSVGInlineTextBoxSize : public InlineTextBox { |
47 float float1; | 47 float float1; |
48 uint32_t bitfields : 1; | 48 uint32_t bitfields : 1; |
49 Vector<SVGTextFragment> vector; | 49 Vector<SVGTextFragment> vector; |
50 }; | 50 }; |
51 | 51 |
52 COMPILE_ASSERT(sizeof(SVGInlineTextBox) == sizeof(ExpectedSVGInlineTextBoxSize),
SVGInlineTextBox_is_not_of_expected_size); | 52 COMPILE_ASSERT(sizeof(SVGInlineTextBox) == sizeof(ExpectedSVGInlineTextBoxSize),
SVGInlineTextBox_is_not_of_expected_size); |
53 | 53 |
54 SVGInlineTextBox::SVGInlineTextBox(RenderObject& object) | 54 SVGInlineTextBox::SVGInlineTextBox(RenderObject& object, int start, unsigned sho
rt length) |
55 : InlineTextBox(object) | 55 : InlineTextBox(object, start, length) |
56 , m_logicalHeight(0) | 56 , m_logicalHeight(0) |
57 , m_startsNewTextChunk(false) | 57 , m_startsNewTextChunk(false) |
58 { | 58 { |
59 } | 59 } |
60 | 60 |
61 void SVGInlineTextBox::dirtyLineBoxes() | 61 void SVGInlineTextBox::dirtyLineBoxes() |
62 { | 62 { |
63 InlineTextBox::dirtyLineBoxes(); | 63 InlineTextBox::dirtyLineBoxes(); |
64 | 64 |
65 // Clear the now stale text fragments | 65 // Clear the now stale text fragments |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); | 295 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); |
296 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) | 296 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect)) |
297 return true; | 297 return true; |
298 } | 298 } |
299 } | 299 } |
300 } | 300 } |
301 return false; | 301 return false; |
302 } | 302 } |
303 | 303 |
304 } // namespace blink | 304 } // namespace blink |
OLD | NEW |