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

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

Issue 2405633002: Reformat comments in core/layout (Closed)
Patch Set: Created 4 years, 2 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) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * (C) 2008 Torch Mobile Inc. All rights reserved.
4 * (http://www.torchmobile.com/)
4 * 5 *
5 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
9 * 10 *
10 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 14 * Library General Public License for more details.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 LayoutUnit lineHeight, 70 LayoutUnit lineHeight,
70 LayoutUnit nonContentHeight) const = 0; 71 LayoutUnit nonContentHeight) const = 0;
71 72
72 void updateFromElement() override; 73 void updateFromElement() override;
73 void computeLogicalHeight(LayoutUnit logicalHeight, 74 void computeLogicalHeight(LayoutUnit logicalHeight,
74 LayoutUnit logicalTop, 75 LayoutUnit logicalTop,
75 LogicalExtentComputedValues&) const override; 76 LogicalExtentComputedValues&) const override;
76 LayoutObject* layoutSpecialExcludedChild(bool relayoutChildren, 77 LayoutObject* layoutSpecialExcludedChild(bool relayoutChildren,
77 SubtreeLayoutScope&) override; 78 SubtreeLayoutScope&) override;
78 79
79 // We need to override this function because we don't want overflow:hidden on an <input> 80 // We need to override this function because we don't want overflow:hidden on
80 // to affect the baseline calculation. This is necessary because we are an inl ine-block 81 // an <input> to affect the baseline calculation. This is necessary because we
81 // element as an implementation detail which would normally be affected by thi s. 82 // are an inline-block element as an implementation detail which would
83 // normally be affected by this.
82 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override { 84 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override {
83 return true; 85 return true;
84 } 86 }
85 87
86 bool isOfType(LayoutObjectType type) const override { 88 bool isOfType(LayoutObjectType type) const override {
87 return type == LayoutObjectTextControl || LayoutBlockFlow::isOfType(type); 89 return type == LayoutObjectTextControl || LayoutBlockFlow::isOfType(type);
88 } 90 }
89 91
90 private: 92 private:
91 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, 93 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 return LayoutBlock::inlineBlockBaseline(direction); 129 return LayoutBlock::inlineBlockBaseline(direction);
128 } 130 }
129 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override { 131 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override {
130 return true; 132 return true;
131 } 133 }
132 }; 134 };
133 135
134 } // namespace blink 136 } // namespace blink
135 137
136 #endif // LayoutTextControl_h 138 #endif // LayoutTextControl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698