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

Side by Side Diff: third_party/WebKit/Source/core/layout/TableLayoutAlgorithm.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2002 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2002 Lars Knoll (knoll@kde.org)
3 * (C) 2002 Dirk Mueller (mueller@kde.org) 3 * (C) 2002 Dirk Mueller (mueller@kde.org)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License. 8 * version 2 of the License.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 24 matching lines...) Expand all
35 explicit TableLayoutAlgorithm(LayoutTable* table) 35 explicit TableLayoutAlgorithm(LayoutTable* table)
36 : m_table(table) 36 : m_table(table)
37 { 37 {
38 } 38 }
39 39
40 virtual ~TableLayoutAlgorithm() { } 40 virtual ~TableLayoutAlgorithm() { }
41 41
42 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) = 0; 42 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) = 0;
43 virtual LayoutUnit scaledWidthFromPercentColumns() 43 virtual LayoutUnit scaledWidthFromPercentColumns()
44 { 44 {
45 return LayoutUnit(0); 45 return LayoutUnit();
46 } 46 }
47 virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUn it& maxWidth) const = 0; 47 virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUn it& maxWidth) const = 0;
48 virtual void layout() = 0; 48 virtual void layout() = 0;
49 virtual void willChangeTableLayout() = 0; 49 virtual void willChangeTableLayout() = 0;
50 50
51 protected: 51 protected:
52 // FIXME: Once we enable SATURATED_LAYOUT_ARITHMETHIC, this should just be L ayoutUnit::nearlyMax(). 52 // FIXME: Once we enable SATURATED_LAYOUT_ARITHMETHIC, this should just be L ayoutUnit::nearlyMax().
53 // Until then though, using nearlyMax causes overflow in some tests, so we j ust pick a large number. 53 // Until then though, using nearlyMax causes overflow in some tests, so we j ust pick a large number.
54 const static int tableMaxWidth = 1000000; 54 const static int tableMaxWidth = 1000000;
55 55
56 LayoutTable* m_table; 56 LayoutTable* m_table;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // TableLayoutAlgorithm_h 61 #endif // TableLayoutAlgorithm_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698