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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp

Issue 2622623003: Moved -webkit-rtl-ordering to be generated in ComputedStyleBase. (Closed)
Patch Set: Created 3 years, 11 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) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 CHECK(!text.needsLayout()); 183 CHECK(!text.needsLayout());
184 184
185 TextRun run( 185 TextRun run(
186 // characters, will be set below if non-zero. 186 // characters, will be set below if non-zero.
187 static_cast<const LChar*>(nullptr), 187 static_cast<const LChar*>(nullptr),
188 0, // length, will be set below if non-zero. 188 0, // length, will be set below if non-zero.
189 0, // xPos, only relevant with allowTabs=true 189 0, // xPos, only relevant with allowTabs=true
190 0, // padding, only relevant for justified text, not relevant for SVG 190 0, // padding, only relevant for justified text, not relevant for SVG
191 TextRun::AllowTrailingExpansion, direction(), 191 TextRun::AllowTrailingExpansion, direction(),
192 dirOverride() || 192 dirOverride() ||
193 style.rtlOrdering() == EOrder::Visual /* directionalOverride */); 193 style.rtlOrdering() == EOrder::kVisual /* directionalOverride */);
194 194
195 if (fragment.length) { 195 if (fragment.length) {
196 if (text.is8Bit()) 196 if (text.is8Bit())
197 run.setText(text.characters8() + fragment.characterOffset, 197 run.setText(text.characters8() + fragment.characterOffset,
198 fragment.length); 198 fragment.length);
199 else 199 else
200 run.setText(text.characters16() + fragment.characterOffset, 200 run.setText(text.characters16() + fragment.characterOffset,
201 fragment.length); 201 fragment.length);
202 } 202 }
203 203
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 return true; 326 return true;
327 } 327 }
328 } 328 }
329 } 329 }
330 } 330 }
331 } 331 }
332 return false; 332 return false;
333 } 333 }
334 334
335 } // namespace blink 335 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698