Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: Source/core/rendering/svg/SVGInlineTextBox.cpp

Issue 622253002: Pass start/length at InlineTextBox construction time. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/svg/SVGInlineTextBox.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGInlineTextBox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698