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

Unified Diff: Source/core/editing/commands/IndentOutdentCommand.cpp

Issue 1315073002: Move global function isInline() to static function in IndentOutdentCommand.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-26T16:32:30 Created 5 years, 4 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
« no previous file with comments | « Source/core/editing/EditingUtilities.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/commands/IndentOutdentCommand.cpp
diff --git a/Source/core/editing/commands/IndentOutdentCommand.cpp b/Source/core/editing/commands/IndentOutdentCommand.cpp
index 4f51c32df5dc7a15a5a190650b87a2b6fefe6fb9..2a48370d5e0d5b8c306bf628ef08178d5a36321c 100644
--- a/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -48,6 +48,12 @@ static bool isHTMLListOrBlockquoteElement(const Node* node)
return isHTMLUListElement(element) || isHTMLOListElement(element) || element.hasTagName(blockquoteTag);
}
+static bool isInline(const Node* node)
+{
+ return node && node->layoutObject() && node->layoutObject()->isInline();
+}
+
+
IndentOutdentCommand::IndentOutdentCommand(Document& document, EIndentType typeOfAction)
: ApplyBlockElementCommand(document, blockquoteTag, "margin: 0 0 0 40px; border: none; padding: 0px;")
, m_typeOfAction(typeOfAction)
« no previous file with comments | « Source/core/editing/EditingUtilities.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698