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

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

Issue 478433002: Avoid RenderObject::paintInvalidationForWholeRenderer() if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TestExpectations Created 6 years, 4 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/DocumentMarkerController.cpp ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/InputMethodController.cpp
diff --git a/Source/core/editing/InputMethodController.cpp b/Source/core/editing/InputMethodController.cpp
index 08778f48daedea147aad0a0ae59d776b1ed01eb3..9899d256aff7bace2f3bf59b69f44a52e4eb2149 100644
--- a/Source/core/editing/InputMethodController.cpp
+++ b/Source/core/editing/InputMethodController.cpp
@@ -305,7 +305,7 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp
m_customCompositionUnderlines[i].endOffset += baseOffset;
}
if (baseNode->renderer())
- baseNode->renderer()->paintInvalidationForWholeRenderer();
+ baseNode->renderer()->setShouldDoFullPaintInvalidation(true);
unsigned start = std::min(baseOffset + selectionStart, extentOffset);
unsigned end = std::min(std::max(start, baseOffset + selectionEnd), extentOffset);
@@ -340,7 +340,7 @@ void InputMethodController::setCompositionFromExistingText(const Vector<Composit
m_customCompositionUnderlines[i].endOffset += m_compositionStart;
}
if (baseNode->renderer())
- baseNode->renderer()->paintInvalidationForWholeRenderer();
+ baseNode->renderer()->setShouldDoFullPaintInvalidation(true);
return;
}
« no previous file with comments | « Source/core/dom/DocumentMarkerController.cpp ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698