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

Unified Diff: Source/core/editing/FormatBlockCommand.cpp

Issue 24278008: [oilpan] Handlify Nodes in htmlediting (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 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: Source/core/editing/FormatBlockCommand.cpp
diff --git a/Source/core/editing/FormatBlockCommand.cpp b/Source/core/editing/FormatBlockCommand.cpp
index 56a2629fc9ca84623d3e444da932299929ad0025..396970b383f1e8db6ef463d392d1eeb72b61eee1 100644
--- a/Source/core/editing/FormatBlockCommand.cpp
+++ b/Source/core/editing/FormatBlockCommand.cpp
@@ -72,7 +72,7 @@ void FormatBlockCommand::formatRange(const Position& start, const Position& end,
if (!root || !refNode)
return;
if (isElementForFormatBlock(refNode->tagQName()) && start == startOfBlock(start)
- && (end == endOfBlock(end) || isNodeVisiblyContainedWithin(refNode.raw(), range))
+ && (end == endOfBlock(end) || isNodeVisiblyContainedWithin(refNode, range))
&& refNode != root && !root->isDescendantOf(refNode.raw())) {
// Already in a block element that only contains the current paragraph
if (refNode->hasTagName(tagName()))
@@ -154,11 +154,11 @@ Result<Node> enclosingBlockToSplitTreeTo(const Handle<Node>& startNode)
HandleScope scope;
if (!n->rendererIsEditable())
return lastBlock;
- if (isTableCell(n.raw()) || n->hasTagName(bodyTag) || !n->parentNode() || !n->parentNode()->rendererIsEditable() || isElementForFormatBlock(n.raw()))
+ if (isTableCell(n) || n->hasTagName(bodyTag) || !n->parentNode() || !n->parentNode()->rendererIsEditable() || isElementForFormatBlock(n.raw()))
return n;
- if (isBlock(n.raw()))
+ if (isBlock(n))
lastBlock = n;
- if (isListElement(n.raw())) {
+ if (isListElement(n)) {
if (n->parentNode()->rendererIsEditable())
return n->parentNode();
else

Powered by Google App Engine
This is Rietveld 408576698