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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp

Issue 2015523004: Don't explicitly initialize LayoutUnit to 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Go through the subdirs of core/layout/ too. Created 4 years, 6 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
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 22 matching lines...) Expand all
33 struct ExpectedSVGInlineTextBoxSize : public InlineTextBox { 33 struct ExpectedSVGInlineTextBoxSize : public InlineTextBox {
34 LayoutUnit float1; 34 LayoutUnit float1;
35 uint32_t bitfields : 1; 35 uint32_t bitfields : 1;
36 Vector<SVGTextFragment> vector; 36 Vector<SVGTextFragment> vector;
37 }; 37 };
38 38
39 static_assert(sizeof(SVGInlineTextBox) == sizeof(ExpectedSVGInlineTextBoxSize), "SVGInlineTextBox has an unexpected size"); 39 static_assert(sizeof(SVGInlineTextBox) == sizeof(ExpectedSVGInlineTextBoxSize), "SVGInlineTextBox has an unexpected size");
40 40
41 SVGInlineTextBox::SVGInlineTextBox(LineLayoutItem item, int start, unsigned shor t length) 41 SVGInlineTextBox::SVGInlineTextBox(LineLayoutItem item, int start, unsigned shor t length)
42 : InlineTextBox(item, start, length) 42 : InlineTextBox(item, start, length)
43 , m_logicalHeight(0)
44 , m_startsNewTextChunk(false) 43 , m_startsNewTextChunk(false)
45 { 44 {
46 } 45 }
47 46
48 void SVGInlineTextBox::dirtyLineBoxes() 47 void SVGInlineTextBox::dirtyLineBoxes()
49 { 48 {
50 InlineTextBox::dirtyLineBoxes(); 49 InlineTextBox::dirtyLineBoxes();
51 50
52 // Clear the now stale text fragments 51 // Clear the now stale text fragments
53 clearTextFragments(); 52 clearTextFragments();
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 return true; 261 return true;
263 } 262 }
264 } 263 }
265 } 264 }
266 } 265 }
267 } 266 }
268 return false; 267 return false;
269 } 268 }
270 269
271 } // namespace blink 270 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698