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

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

Issue 2813533003: Add "Unicode" suffixes to some functions of WTF::String and WTF::StringImpl. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/shaping/CaseMappingHarfBuzzBufferFiller.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2005, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1713 if (!style) 1713 if (!style)
1714 return; 1714 return;
1715 1715
1716 switch (style->TextTransform()) { 1716 switch (style->TextTransform()) {
1717 case ETextTransform::kNone: 1717 case ETextTransform::kNone:
1718 break; 1718 break;
1719 case ETextTransform::kCapitalize: 1719 case ETextTransform::kCapitalize:
1720 MakeCapitalized(&text, previous_character); 1720 MakeCapitalized(&text, previous_character);
1721 break; 1721 break;
1722 case ETextTransform::kUppercase: 1722 case ETextTransform::kUppercase:
1723 text = text.Upper(style->Locale()); 1723 text = text.UpperUnicode(style->Locale());
1724 break; 1724 break;
1725 case ETextTransform::kLowercase: 1725 case ETextTransform::kLowercase:
1726 text = text.Lower(style->Locale()); 1726 text = text.LowerUnicode(style->Locale());
1727 break; 1727 break;
1728 } 1728 }
1729 } 1729 }
1730 1730
1731 void LayoutText::SetTextInternal(PassRefPtr<StringImpl> text) { 1731 void LayoutText::SetTextInternal(PassRefPtr<StringImpl> text) {
1732 DCHECK(text); 1732 DCHECK(text);
1733 text_ = std::move(text); 1733 text_ = std::move(text);
1734 1734
1735 if (Style()) { 1735 if (Style()) {
1736 ApplyTextTransform(Style(), text_, PreviousCharacter()); 1736 ApplyTextTransform(Style(), text_, PreviousCharacter());
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 LayoutRect rect = LayoutRect( 2112 LayoutRect rect = LayoutRect(
2113 IntRect(FirstRunX(), FirstRunY(), lines_box.Width(), lines_box.Height())); 2113 IntRect(FirstRunX(), FirstRunY(), lines_box.Width(), lines_box.Height()));
2114 LayoutBlock* block = ContainingBlock(); 2114 LayoutBlock* block = ContainingBlock();
2115 if (block && HasTextBoxes()) 2115 if (block && HasTextBoxes())
2116 block->AdjustChildDebugRect(rect); 2116 block->AdjustChildDebugRect(rect);
2117 2117
2118 return rect; 2118 return rect;
2119 } 2119 }
2120 2120
2121 } // namespace blink 2121 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/shaping/CaseMappingHarfBuzzBufferFiller.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698