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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp

Issue 2809363002: Rewrite references to "wtf/" to "platform/wtf/" in core/layout. (Closed)
Patch Set: Created 3 years, 8 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 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/layout/LayoutFlexibleBox.h" 31 #include "core/layout/LayoutFlexibleBox.h"
32 32
33 #include <limits>
33 #include "core/frame/UseCounter.h" 34 #include "core/frame/UseCounter.h"
34 #include "core/layout/FlexibleBoxAlgorithm.h" 35 #include "core/layout/FlexibleBoxAlgorithm.h"
35 #include "core/layout/LayoutState.h" 36 #include "core/layout/LayoutState.h"
36 #include "core/layout/LayoutView.h" 37 #include "core/layout/LayoutView.h"
37 #include "core/layout/TextAutosizer.h" 38 #include "core/layout/TextAutosizer.h"
38 #include "core/paint/BlockPainter.h" 39 #include "core/paint/BlockPainter.h"
39 #include "core/paint/PaintLayer.h" 40 #include "core/paint/PaintLayer.h"
40 #include "core/style/ComputedStyle.h" 41 #include "core/style/ComputedStyle.h"
41 #include "platform/LengthFunctions.h" 42 #include "platform/LengthFunctions.h"
42 #include "wtf/AutoReset.h" 43 #include "platform/wtf/AutoReset.h"
43 #include "wtf/MathExtras.h" 44 #include "platform/wtf/MathExtras.h"
44 #include <limits>
45 45
46 namespace blink { 46 namespace blink {
47 47
48 static bool HasAspectRatio(const LayoutBox& child) { 48 static bool HasAspectRatio(const LayoutBox& child) {
49 return child.IsImage() || child.IsCanvas() || child.IsVideo(); 49 return child.IsImage() || child.IsCanvas() || child.IsVideo();
50 } 50 }
51 51
52 struct LayoutFlexibleBox::LineContext { 52 struct LayoutFlexibleBox::LineContext {
53 LineContext(LayoutUnit cross_axis_offset, 53 LineContext(LayoutUnit cross_axis_offset,
54 LayoutUnit cross_axis_extent, 54 LayoutUnit cross_axis_extent,
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after
2202 LayoutUnit original_offset = 2202 LayoutUnit original_offset =
2203 line_contexts[line_number].cross_axis_offset - cross_axis_start_edge; 2203 line_contexts[line_number].cross_axis_offset - cross_axis_start_edge;
2204 LayoutUnit new_offset = 2204 LayoutUnit new_offset =
2205 content_extent - original_offset - line_cross_axis_extent; 2205 content_extent - original_offset - line_cross_axis_extent;
2206 AdjustAlignmentForChild(*flex_item.box, new_offset - original_offset); 2206 AdjustAlignmentForChild(*flex_item.box, new_offset - original_offset);
2207 } 2207 }
2208 } 2208 }
2209 } 2209 }
2210 2210
2211 } // namespace blink 2211 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698