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

Unified Diff: Source/core/editing/ApplyBlockElementCommand.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/ApplyBlockElementCommand.cpp
diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp
index 930974d42c8add7ef56f03b8f3716aebb23866ec..6f6cc7019e469458467f6706f902ac2c9abf11d4 100644
--- a/Source/core/editing/ApplyBlockElementCommand.cpp
+++ b/Source/core/editing/ApplyBlockElementCommand.cpp
@@ -130,7 +130,7 @@ void ApplyBlockElementCommand::formatSelection(const VisiblePosition& startOfSel
endOfCurrentParagraph = end;
Position afterEnd = end.next();
- Node* enclosingCell = enclosingNodeOfType(start, &isTableCell);
+ Handle<Node> enclosingCell = enclosingNodeOfType(start, &isTableCell);
VisiblePosition endOfNextParagraph = endOfNextParagrahSplittingTextNodesIfNeeded(endOfCurrentParagraph, start, end);
formatRange(start, end, m_endOfLastParagraph, blockquoteForNextIndent);
@@ -227,10 +227,10 @@ void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const
Handle<Text> endContainer = end.containerText();
splitTextNode(endContainer, end.offsetInContainerNode());
if (isStartAndEndOnSameNode)
- start = firstPositionInOrBeforeNode(endContainer->previousSibling().handle().raw());
+ start = firstPositionInOrBeforeNode(endContainer->previousSibling());
if (isEndAndEndOfLastParagraphOnSameNode) {
if (m_endOfLastParagraph.offsetInContainerNode() == end.offsetInContainerNode())
- m_endOfLastParagraph = lastPositionInOrAfterNode(endContainer->previousSibling().handle().raw());
+ m_endOfLastParagraph = lastPositionInOrAfterNode(endContainer->previousSibling());
else
m_endOfLastParagraph = Position(endContainer, m_endOfLastParagraph.offsetInContainerNode() - end.offsetInContainerNode());
}

Powered by Google App Engine
This is Rietveld 408576698