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

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

Issue 2803323002: Avoiding name collisions between flexbox and grid (Closed)
Patch Set: Moved functions around. 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const char* name() const override { return "LayoutFlexibleBox"; } 49 const char* name() const override { return "LayoutFlexibleBox"; }
50 50
51 bool isFlexibleBox() const final { return true; } 51 bool isFlexibleBox() const final { return true; }
52 void layoutBlock(bool relayoutChildren) final; 52 void layoutBlock(bool relayoutChildren) final;
53 53
54 int baselinePosition( 54 int baselinePosition(
55 FontBaseline, 55 FontBaseline,
56 bool firstLine, 56 bool firstLine,
57 LineDirectionMode, 57 LineDirectionMode,
58 LinePositionMode = PositionOnContainingLine) const override; 58 LinePositionMode = PositionOnContainingLine) const override;
59
60 static const StyleContentAlignmentData& contentAlignmentNormalBehavior();
61 static int synthesizedBaselineFromContentBox(const LayoutBox&,
62 LineDirectionMode);
63
59 int firstLineBoxBaseline() const override; 64 int firstLineBoxBaseline() const override;
60 int inlineBlockBaseline(LineDirectionMode) const override; 65 int inlineBlockBaseline(LineDirectionMode) const override;
61 IntSize originAdjustmentForScrollbars() const override; 66 IntSize originAdjustmentForScrollbars() const override;
62 bool hasTopOverflow() const override; 67 bool hasTopOverflow() const override;
63 bool hasLeftOverflow() const override; 68 bool hasLeftOverflow() const override;
64 69
65 void paintChildren(const PaintInfo&, const LayoutPoint&) const final; 70 void paintChildren(const PaintInfo&, const LayoutPoint&) const final;
66 71
67 bool isHorizontalFlow() const; 72 bool isHorizontalFlow() const;
68 73
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // This is SizeIsUnknown outside of layoutBlock() 257 // This is SizeIsUnknown outside of layoutBlock()
253 mutable SizeDefiniteness m_hasDefiniteHeight; 258 mutable SizeDefiniteness m_hasDefiniteHeight;
254 bool m_inLayout; 259 bool m_inLayout;
255 }; 260 };
256 261
257 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); 262 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox());
258 263
259 } // namespace blink 264 } // namespace blink
260 265
261 #endif // LayoutFlexibleBox_h 266 #endif // LayoutFlexibleBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698