Index: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
index 756813bb56d2e51bd0dda87e398ce4ec71a50302..c391b8aa877e5c0354e941a6e0f0e56688ea8acd 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
@@ -2076,7 +2076,8 @@ static String valueFormatBlock(LocalFrame& frame, Event*) { |
if (!selection.isNonOrphanedCaretOrRange() || !selection.isContentEditable()) |
return ""; |
Element* formatBlockElement = |
- FormatBlockCommand::elementForFormatBlockCommand(firstRangeOf(selection)); |
Xiaocheng
2017/03/02 20:21:05
This patch has conflict with https://codereview.ch
yosin_UTC9
2017/03/09 05:18:40
The patch is committed. There is no conflict anymo
|
+ FormatBlockCommand::elementForFormatBlockCommand( |
+ firstEphemeralRangeOf(selection)); |
if (!formatBlockElement) |
return ""; |
return formatBlockElement->localName(); |