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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.h

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
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp ('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) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006 Apple Computer Inc. 3 * Copyright (C) 2006 Apple Computer Inc.
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 13 matching lines...) Expand all
24 #define SVGRootInlineBox_h 24 #define SVGRootInlineBox_h
25 25
26 #include "core/layout/line/RootInlineBox.h" 26 #include "core/layout/line/RootInlineBox.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 class SVGRootInlineBox final : public RootInlineBox { 30 class SVGRootInlineBox final : public RootInlineBox {
31 public: 31 public:
32 SVGRootInlineBox(LineLayoutItem block) 32 SVGRootInlineBox(LineLayoutItem block)
33 : RootInlineBox(block) 33 : RootInlineBox(block)
34 , m_logicalHeight(0)
35 { 34 {
36 } 35 }
37 36
38 bool isSVGRootInlineBox() const override { return true; } 37 bool isSVGRootInlineBox() const override { return true; }
39 38
40 LayoutUnit virtualLogicalHeight() const override { return m_logicalHeight; } 39 LayoutUnit virtualLogicalHeight() const override { return m_logicalHeight; }
41 void setLogicalHeight(LayoutUnit height) { m_logicalHeight = height; } 40 void setLogicalHeight(LayoutUnit height) { m_logicalHeight = height; }
42 41
43 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU nit lineBottom) const override; 42 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU nit lineBottom) const override;
44 43
(...skipping 12 matching lines...) Expand all
57 56
58 private: 57 private:
59 LayoutUnit m_logicalHeight; 58 LayoutUnit m_logicalHeight;
60 }; 59 };
61 60
62 DEFINE_INLINE_BOX_TYPE_CASTS(SVGRootInlineBox); 61 DEFINE_INLINE_BOX_TYPE_CASTS(SVGRootInlineBox);
63 62
64 } // namespace blink 63 } // namespace blink
65 64
66 #endif // SVGRootInlineBox_h 65 #endif // SVGRootInlineBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698