Commit e7a946ed authored by DongJun Kim's avatar DongJun Kim Committed by Commit Bot

Remove DeprecatedEqualIgnoringCase in renderer/core/editing

This Cl updates the calls to DeprecatedEqualIgnoringCase to use
EqualIgnoringASCIICase as needed.

Bug: 627682
Signed-off-by: default avatarDongJun Kim <djmix.kim@samsung.com>
Change-Id: I3382fbd2b77b7ae2d6e0812f48b6add384c78137
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2108202
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751237}
parent fd69d8f8
......@@ -352,7 +352,7 @@ bool StyleCommands::ExecuteStyleWithCSS(LocalFrame& frame,
EditorCommandSource,
const String& value) {
frame.GetEditor().SetShouldStyleWithCSS(
!DeprecatedEqualIgnoringCase(value, "false"));
!EqualIgnoringASCIICase(value, "false"));
return true;
}
......@@ -361,7 +361,7 @@ bool StyleCommands::ExecuteUseCSS(LocalFrame& frame,
EditorCommandSource,
const String& value) {
frame.GetEditor().SetShouldStyleWithCSS(
DeprecatedEqualIgnoringCase(value, "false"));
EqualIgnoringASCIICase(value, "false"));
return true;
}
......
......@@ -422,7 +422,7 @@ void DOMSelection::modify(const String& alter_string,
SelectionModifyDirection direction;
if (EqualIgnoringASCIICase(direction_string, "forward"))
direction = SelectionModifyDirection::kForward;
else if (DeprecatedEqualIgnoringCase(direction_string, "backward"))
else if (EqualIgnoringASCIICase(direction_string, "backward"))
direction = SelectionModifyDirection::kBackward;
else if (EqualIgnoringASCIICase(direction_string, "left"))
direction = SelectionModifyDirection::kLeft;
......@@ -436,7 +436,7 @@ void DOMSelection::modify(const String& alter_string,
granularity = TextGranularity::kCharacter;
else if (EqualIgnoringASCIICase(granularity_string, "word"))
granularity = TextGranularity::kWord;
else if (DeprecatedEqualIgnoringCase(granularity_string, "sentence"))
else if (EqualIgnoringASCIICase(granularity_string, "sentence"))
granularity = TextGranularity::kSentence;
else if (EqualIgnoringASCIICase(granularity_string, "line"))
granularity = TextGranularity::kLine;
......@@ -444,7 +444,7 @@ void DOMSelection::modify(const String& alter_string,
granularity = TextGranularity::kParagraph;
else if (EqualIgnoringASCIICase(granularity_string, "lineboundary"))
granularity = TextGranularity::kLineBoundary;
else if (DeprecatedEqualIgnoringCase(granularity_string, "sentenceboundary"))
else if (EqualIgnoringASCIICase(granularity_string, "sentenceboundary"))
granularity = TextGranularity::kSentenceBoundary;
else if (EqualIgnoringASCIICase(granularity_string, "paragraphboundary"))
granularity = TextGranularity::kParagraphBoundary;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment