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

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

Issue 1922223003: Change linesBoundingBox to return LayoutRect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * 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.
10 * 10 *
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 float maxLogicalWidth() const; 125 float maxLogicalWidth() const;
126 126
127 void trimmedPrefWidths(LayoutUnit leadWidth, 127 void trimmedPrefWidths(LayoutUnit leadWidth,
128 LayoutUnit& firstLineMinWidth, bool& hasBreakableStart, 128 LayoutUnit& firstLineMinWidth, bool& hasBreakableStart,
129 LayoutUnit& lastLineMinWidth, bool& hasBreakableEnd, 129 LayoutUnit& lastLineMinWidth, bool& hasBreakableEnd,
130 bool& hasBreakableChar, bool& hasBreak, 130 bool& hasBreakableChar, bool& hasBreak,
131 LayoutUnit& firstLineMaxWidth, LayoutUnit& lastLineMaxWidth, 131 LayoutUnit& firstLineMaxWidth, LayoutUnit& lastLineMaxWidth,
132 LayoutUnit& minWidth, LayoutUnit& maxWidth, bool& stripFrontSpaces, 132 LayoutUnit& minWidth, LayoutUnit& maxWidth, bool& stripFrontSpaces,
133 TextDirection); 133 TextDirection);
134 134
135 virtual IntRect linesBoundingBox() const; 135 virtual LayoutRect linesBoundingBox() const;
136 136
137 // Returns the bounding box of visual overflow rects of all line boxes. 137 // Returns the bounding box of visual overflow rects of all line boxes.
138 LayoutRect visualOverflowRect() const; 138 LayoutRect visualOverflowRect() const;
139 139
140 FloatPoint firstRunOrigin() const; 140 FloatPoint firstRunOrigin() const;
141 float firstRunX() const; 141 float firstRunX() const;
142 float firstRunY() const; 142 float firstRunY() const;
143 143
144 virtual void setText(PassRefPtr<StringImpl>, bool force = false); 144 virtual void setText(PassRefPtr<StringImpl>, bool force = false);
145 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len , bool force = false); 145 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len , bool force = false);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 inline LayoutText* Text::layoutObject() const 291 inline LayoutText* Text::layoutObject() const
292 { 292 {
293 return toLayoutText(CharacterData::layoutObject()); 293 return toLayoutText(CharacterData::layoutObject());
294 } 294 }
295 295
296 void applyTextTransform(const ComputedStyle*, String&, UChar); 296 void applyTextTransform(const ComputedStyle*, String&, UChar);
297 297
298 } // namespace blink 298 } // namespace blink
299 299
300 #endif // LayoutText_h 300 #endif // LayoutText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698