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

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

Issue 2339683004: Apply first-line transform-text style (Closed)
Patch Set: Created 4 years, 3 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LineLayoutText_h 5 #ifndef LineLayoutText_h
6 #define LineLayoutText_h 6 #define LineLayoutText_h
7 7
8 #include "core/layout/LayoutText.h" 8 #include "core/layout/LayoutText.h"
9 #include "core/layout/api/LineLayoutItem.h" 9 #include "core/layout/api/LineLayoutItem.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 unsigned textStartOffset() const 147 unsigned textStartOffset() const
148 { 148 {
149 return toText()->textStartOffset(); 149 return toText()->textStartOffset();
150 } 150 }
151 151
152 float minLogicalWidth() const 152 float minLogicalWidth() const
153 { 153 {
154 return toText()->minLogicalWidth(); 154 return toText()->minLogicalWidth();
155 } 155 }
156 156
157 void applyTextTransformFromTo(int from, int len, const ComputedStyle* style)
158 {
159 toText()->applyTextTransformFromTo(from, len, style);
160 }
161
157 private: 162 private:
158 LayoutText* toText() { return toLayoutText(layoutObject()); } 163 LayoutText* toText() { return toLayoutText(layoutObject()); }
159 const LayoutText* toText() const { return toLayoutText(layoutObject()); } 164 const LayoutText* toText() const { return toLayoutText(layoutObject()); }
160 }; 165 };
161 166
162 } // namespace blink 167 } // namespace blink
163 168
164 #endif // LineLayoutText_h 169 #endif // LineLayoutText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.cpp ('k') | third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698