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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 years, 10 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/FrameSelection.cpp
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp
index ac11d9cf9186684ef3471c087c67188f88dc2db6..ec813573889c70ec98ad26b5179d66852b9208f1 100644
--- a/Source/core/editing/FrameSelection.cpp
+++ b/Source/core/editing/FrameSelection.cpp
@@ -1301,10 +1301,10 @@ bool FrameSelection::contains(const LayoutPoint& point)
HitTestResult result(point);
document->layoutView()->hitTest(request, result);
Node* innerNode = result.innerNode();
- if (!innerNode || !innerNode->renderer())
+ if (!innerNode || !innerNode->layoutObject())
return false;
- VisiblePosition visiblePos(innerNode->renderer()->positionForPoint(result.localPoint()));
+ VisiblePosition visiblePos(innerNode->layoutObject()->positionForPoint(result.localPoint()));
if (visiblePos.isNull())
return false;
@@ -1618,7 +1618,7 @@ static bool isFrameElement(const Node* n)
{
if (!n)
return false;
- LayoutObject* renderer = n->renderer();
+ LayoutObject* renderer = n->layoutObject();
if (!renderer || !renderer->isLayoutPart())
return false;
Widget* widget = toLayoutPart(renderer)->widget();
@@ -1760,11 +1760,11 @@ void FrameSelection::revealSelection(const ScrollAlignment& alignment, RevealExt
Position start = this->start();
ASSERT(start.deprecatedNode());
- if (start.deprecatedNode() && start.deprecatedNode()->renderer()) {
+ if (start.deprecatedNode() && start.deprecatedNode()->layoutObject()) {
// FIXME: This code only handles scrolling the startContainer's layer, but
// the selection rect could intersect more than just that.
// See <rdar://problem/4799899>.
- if (start.deprecatedNode()->renderer()->scrollRectToVisible(rect, alignment, alignment))
+ if (start.deprecatedNode()->layoutObject()->scrollRectToVisible(rect, alignment, alignment))
updateAppearance();
}
}

Powered by Google App Engine
This is Rietveld 408576698