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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.cpp

Issue 2369113002: Revert "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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index 8d3e6d24adf9a0871ac1f35682ed773fbb13b959..93e42edb50982cb10ec261b022dbfd809d3f8322 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -1415,33 +1415,6 @@ void applyTextTransform(const ComputedStyle* style, String& text, UChar previous
}
}
-void LayoutText::applyTextTransformFromTo(int from, int len, const ComputedStyle* style)
-{
- if (!style)
- return;
- if (m_text.isEmpty())
- return;
-
- String textToTransform = m_text.substring(from, len);
- if (textToTransform.isEmpty())
- return;
-
- switch (style->textTransform()) {
- case TTNONE:
- break;
- case CAPITALIZE:
- makeCapitalized(&textToTransform, previousCharacter());
- m_text.replace(from, len, textToTransform);
- break;
- case UPPERCASE:
- m_text.replace(from, len, textToTransform.upper(style->locale()));
- break;
- case LOWERCASE:
- m_text.replace(from, len, textToTransform.lower(style->locale()));
- break;
- }
-}
-
void LayoutText::setTextInternal(PassRefPtr<StringImpl> text)
{
ASSERT(text);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.h ('k') | third_party/WebKit/Source/core/layout/api/LineLayoutText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698