Index: third_party/WebKit/Source/core/testing/Internals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
index 34bf1b830912ff027d8882feafa153da6434f8de..1dd34866f725d64668bf7815fc52753f20e36e10 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -991,6 +991,10 @@ void Internals::addTextMatchMarker(const Range* range, bool isActive) { |
range->ownerDocument().updateStyleAndLayoutIgnorePendingStylesheets(); |
range->ownerDocument().markers().addTextMatchMarker(EphemeralRange(range), |
isActive); |
+ |
+ // This simulates what the production code does after |
+ // DocumentMarkerController::addTextMatchMarker(). |
+ range->ownerDocument().view()->invalidatePaintForTickmarks(); |
} |
static bool parseColor(const String& value, |