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

Side by Side Diff: third_party/WebKit/Source/core/layout/FlexibleBoxAlgorithm.h

Issue 2944793002: Make EFlexWrap an enum class. (Closed)
Patch Set: Rebase Created 3 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // according to its min and max main size properties 86 // according to its min and max main size properties
87 bool ComputeNextFlexLine(size_t& next_index, 87 bool ComputeNextFlexLine(size_t& next_index,
88 Vector<FlexItem>& line_items, 88 Vector<FlexItem>& line_items,
89 LayoutUnit& sum_flex_base_size, 89 LayoutUnit& sum_flex_base_size,
90 double& total_flex_grow, 90 double& total_flex_grow,
91 double& total_flex_shrink, 91 double& total_flex_shrink,
92 double& total_weighted_flex_shrink, 92 double& total_weighted_flex_shrink,
93 LayoutUnit& sum_hypothetical_main_size); 93 LayoutUnit& sum_hypothetical_main_size);
94 94
95 private: 95 private:
96 bool IsMultiline() const { return style_->FlexWrap() != kFlexNoWrap; } 96 bool IsMultiline() const { return style_->FlexWrap() != EFlexWrap::kNowrap; }
97 97
98 const ComputedStyle* style_; 98 const ComputedStyle* style_;
99 LayoutUnit line_break_length_; 99 LayoutUnit line_break_length_;
100 const Vector<FlexItem>& all_items_; 100 const Vector<FlexItem>& all_items_;
101 }; 101 };
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // FlexibleBoxAlgorithm_h 105 #endif // FlexibleBoxAlgorithm_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698