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

Unified Diff: Source/core/dom/DocumentMarkerController.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
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()) {
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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698