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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2140733003: [Editing][CodeHealth] Make Node::rootEditableElement static (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 04c701c370f4fcc0f87c82d3f54ac3fae6a5d6d9..a1946e9fa9648d8a6382fdf6e9cbe2317df377cb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -790,7 +790,7 @@ bool LayoutBlock::isSelectionRoot() const
if (view() && view()->selectionStart()) {
Node* startElement = view()->selectionStart()->node();
- if (startElement && startElement->rootEditableElement() == node())
+ if (startElement && rootEditableElement(*startElement) == node())
return true;
}
@@ -1409,7 +1409,7 @@ bool LayoutBlock::hasLineIfEmpty() const
if (!node())
return false;
- if (node()->isRootEditableElement())
+ if (isRootEditableElement(*node()))
return true;
if (node()->isShadowRoot() && isHTMLInputElement(toShadowRoot(node())->host()))

Powered by Google App Engine
This is Rietveld 408576698