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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp

Issue 1762993002: Revert of TextIteratorAlgorithm should not force layout update in constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
index 2cc2a91a1ff69da3194748de02baca4085ea4580..b7211a656dbd2545f88cd1e0e822a0074767636e 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -99,11 +99,6 @@
void DocumentMarkerController::addMarker(const Position& start, const Position& end, DocumentMarker::MarkerType type, const String& description, uint32_t hash)
{
-
- // TODO(dglazkov): The use of updateLayoutIgnorePendingStylesheets needs to be audited.
- // see http://crbug.com/590369 for more details.
- start.document()->updateLayoutIgnorePendingStylesheets();
-
// Use a TextIterator to visit the potentially multiple nodes the range covers.
for (TextIterator markedText(start, end); !markedText.atEnd(); markedText.advance()) {
addMarker(markedText.currentContainer(), DocumentMarker(type, markedText.startOffsetInCurrentContainer(), markedText.endOffsetInCurrentContainer(), description, hash));
@@ -112,10 +107,6 @@
void DocumentMarkerController::addTextMatchMarker(const Range* range, bool activeMatch)
{
- // TODO(dglazkov): The use of updateLayoutIgnorePendingStylesheets needs to be audited.
- // see http://crbug.com/590369 for more details.
- range->startPosition().document()->updateLayoutIgnorePendingStylesheets();
-
// Use a TextIterator to visit the potentially multiple nodes the range covers.
for (TextIterator markedText(range->startPosition(), range->endPosition()); !markedText.atEnd(); markedText.advance())
addMarker(markedText.currentContainer(), DocumentMarker(markedText.startOffsetInCurrentContainer(), markedText.endOffsetInCurrentContainer(), activeMatch));
@@ -124,10 +115,6 @@
void DocumentMarkerController::addCompositionMarker(const Position& start, const Position& end, Color underlineColor, bool thick, Color backgroundColor)
{
- // TODO(dglazkov): The use of updateLayoutIgnorePendingStylesheets needs to be audited.
- // see http://crbug.com/590369 for more details.
- start.document()->updateLayoutIgnorePendingStylesheets();
-
for (TextIterator markedText(start, end); !markedText.atEnd(); markedText.advance())
addMarker(markedText.currentContainer(), DocumentMarker(markedText.startOffsetInCurrentContainer(), markedText.endOffsetInCurrentContainer(), underlineColor, thick, backgroundColor));
}
@@ -152,10 +139,6 @@
void DocumentMarkerController::removeMarkers(const EphemeralRange& range, DocumentMarker::MarkerTypes markerTypes, RemovePartiallyOverlappingMarkerOrNot shouldRemovePartiallyOverlappingMarker)
{
- // TODO(dglazkov): The use of updateLayoutIgnorePendingStylesheets needs to be audited.
- // see http://crbug.com/590369 for more details.
- range.startPosition().document()->updateLayoutIgnorePendingStylesheets();
-
TextIterator markedText(range.startPosition(), range.endPosition());
DocumentMarkerController::removeMarkers(markedText, markerTypes, shouldRemovePartiallyOverlappingMarker);
}

Powered by Google App Engine
This is Rietveld 408576698