Commit 57bc2e66 authored by yosin@chromium.org's avatar yosin@chromium.org

Move global function isInline() to static function in IndentOutdentCommand.cpp

This patch moves global function |isInline()| defined in
"EditingUtilities.{cpp,h}" to "IndentOutdentCommand.cpp" to reduce number of
global functions for improving code health since |isInline()| is used only in
"IndentOutdentCommand.cpp".

BUG=n/a
TEST=n/a; No behavior changes

Review URL: https://codereview.chromium.org/1315073002

git-svn-id: svn://svn.chromium.org/blink/trunk@201216 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 5f7c4cb5
...@@ -130,7 +130,6 @@ inline bool canHaveChildrenForEditing(const Node* node) ...@@ -130,7 +130,6 @@ inline bool canHaveChildrenForEditing(const Node* node)
bool isAtomicNode(const Node*); bool isAtomicNode(const Node*);
CORE_EXPORT bool isBlock(const Node*); CORE_EXPORT bool isBlock(const Node*);
bool isInline(const Node*);
bool isTabHTMLSpanElement(const Node*); bool isTabHTMLSpanElement(const Node*);
bool isTabHTMLSpanElementTextNode(const Node*); bool isTabHTMLSpanElementTextNode(const Node*);
bool isMailHTMLBlockquoteElement(const Node*); bool isMailHTMLBlockquoteElement(const Node*);
......
...@@ -48,6 +48,12 @@ static bool isHTMLListOrBlockquoteElement(const Node* node) ...@@ -48,6 +48,12 @@ static bool isHTMLListOrBlockquoteElement(const Node* node)
return isHTMLUListElement(element) || isHTMLOListElement(element) || element.hasTagName(blockquoteTag); 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) IndentOutdentCommand::IndentOutdentCommand(Document& document, EIndentType typeOfAction)
: ApplyBlockElementCommand(document, blockquoteTag, "margin: 0 0 0 40px; border: none; padding: 0px;") : ApplyBlockElementCommand(document, blockquoteTag, "margin: 0 0 0 40px; border: none; padding: 0px;")
, m_typeOfAction(typeOfAction) , m_typeOfAction(typeOfAction)
......
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