| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |