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

Unified Diff: Source/core/dom/DocumentMarkerController.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/dom/DocumentMarkerController.cpp
diff --git a/Source/core/dom/DocumentMarkerController.cpp b/Source/core/dom/DocumentMarkerController.cpp
index e667262e887fdff247608b820e97dc61a1f8d8c1..30951c6562ad24b68d27458cd575a99fed9b5909 100644
--- a/Source/core/dom/DocumentMarkerController.cpp
+++ b/Source/core/dom/DocumentMarkerController.cpp
@@ -225,8 +225,8 @@ void DocumentMarkerController::addMarker(Node* node, const DocumentMarker& newMa
}
// repaint the affected node
- if (node->renderer())
- node->renderer()->setShouldDoFullPaintInvalidation();
+ if (node->layoutObject())
+ node->layoutObject()->setShouldDoFullPaintInvalidation();
}
void DocumentMarkerController::mergeOverlapping(MarkerList* list, DocumentMarker& toInsert)
@@ -286,8 +286,8 @@ void DocumentMarkerController::copyMarkers(Node* srcNode, unsigned startOffset,
}
// repaint the affected node
- if (docDirty && dstNode->renderer())
- dstNode->renderer()->setShouldDoFullPaintInvalidation();
+ if (docDirty && dstNode->layoutObject())
+ dstNode->layoutObject()->setShouldDoFullPaintInvalidation();
}
void DocumentMarkerController::removeMarkers(Node* node, unsigned startOffset, int length, DocumentMarker::MarkerTypes markerTypes, RemovePartiallyOverlappingMarkerOrNot shouldRemovePartiallyOverlappingMarker)
@@ -367,8 +367,8 @@ void DocumentMarkerController::removeMarkers(Node* node, unsigned startOffset, i
}
// repaint the affected node
- if (docDirty && node->renderer())
- node->renderer()->setShouldDoFullPaintInvalidation();
+ if (docDirty && node->layoutObject())
+ node->layoutObject()->setShouldDoFullPaintInvalidation();
}
DocumentMarker* DocumentMarkerController::markerContainingPoint(const LayoutPoint& point, DocumentMarker::MarkerType markerType)
@@ -573,7 +573,7 @@ void DocumentMarkerController::removeMarkersFromList(MarkerMap::iterator iterato
}
if (needsRepainting) {
- if (LayoutObject* renderer = iterator->key->renderer())
+ if (LayoutObject* renderer = iterator->key->layoutObject())
Julien - ping for review 2015/03/05 16:19:15 s/renderer/layoutObject/
renderer->setShouldDoFullPaintInvalidation();
}
@@ -603,7 +603,7 @@ void DocumentMarkerController::repaintMarkers(DocumentMarker::MarkerTypes marker
continue;
// cause the node to be redrawn
- if (LayoutObject* renderer = node->renderer()) {
+ if (LayoutObject* renderer = node->layoutObject()) {
Julien - ping for review 2015/03/05 16:19:15 Ditto.
renderer->setShouldDoFullPaintInvalidation();
break;
}
@@ -657,8 +657,8 @@ void DocumentMarkerController::shiftMarkers(Node* node, unsigned startOffset, in
}
// repaint the affected node
- if (docDirty && node->renderer())
- node->renderer()->setShouldDoFullPaintInvalidation();
+ if (docDirty && node->layoutObject())
+ node->layoutObject()->setShouldDoFullPaintInvalidation();
}
void DocumentMarkerController::setMarkersActive(Range* range, bool active)
@@ -701,8 +701,8 @@ void DocumentMarkerController::setMarkersActive(Node* node, unsigned startOffset
}
// repaint the affected node
- if (docDirty && node->renderer())
- node->renderer()->setShouldDoFullPaintInvalidation();
+ if (docDirty && node->layoutObject())
+ node->layoutObject()->setShouldDoFullPaintInvalidation();
}
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698