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

Side by Side Diff: third_party/WebKit/Source/core/layout/line/RootInlineBox.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, 7 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) 2003, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 static_assert(sizeof(RootInlineBox) == sizeof(SameSizeAsRootInlineBox), "RootInl ineBox should stay small"); 44 static_assert(sizeof(RootInlineBox) == sizeof(SameSizeAsRootInlineBox), "RootInl ineBox should stay small");
45 45
46 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap; 46 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap;
47 static EllipsisBoxMap* gEllipsisBoxMap = nullptr; 47 static EllipsisBoxMap* gEllipsisBoxMap = nullptr;
48 48
49 RootInlineBox::RootInlineBox(LineLayoutItem block) 49 RootInlineBox::RootInlineBox(LineLayoutItem block)
50 : InlineFlowBox(block) 50 : InlineFlowBox(block)
51 , m_lineBreakPos(0) 51 , m_lineBreakPos(0)
52 , m_lineBreakObj(nullptr) 52 , m_lineBreakObj(nullptr)
53 , m_lineTop(0)
54 , m_lineBottom(0)
55 , m_lineTopWithLeading(0)
56 , m_lineBottomWithLeading(0)
57 , m_selectionBottom(0)
58 , m_paginationStrut(0)
59 { 53 {
60 setIsHorizontal(block.isHorizontalWritingMode()); 54 setIsHorizontal(block.isHorizontalWritingMode());
61 } 55 }
62 56
63 void RootInlineBox::destroy() 57 void RootInlineBox::destroy()
64 { 58 {
65 detachEllipsisBox(); 59 detachEllipsisBox();
66 InlineFlowBox::destroy(); 60 InlineFlowBox::destroy();
67 } 61 }
68 62
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 endBox = nullptr; 702 endBox = nullptr;
709 return nullptr; 703 return nullptr;
710 } 704 }
711 705
712 const char* RootInlineBox::boxName() const 706 const char* RootInlineBox::boxName() const
713 { 707 {
714 return "RootInlineBox"; 708 return "RootInlineBox";
715 } 709 }
716 710
717 } // namespace blink 711 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698