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

Unified Diff: sky/engine/core/editing/InputMethodController.cpp

Issue 865383003: Consolidate callers to scheduleVisualUpdate. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/editing/FrameSelection.cpp ('k') | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/editing/InputMethodController.cpp
diff --git a/sky/engine/core/editing/InputMethodController.cpp b/sky/engine/core/editing/InputMethodController.cpp
index 5aa9515ae2afb2208119db3fc2898808637551e0..e61869fc3e40826ecded9bd4b164ee71e46fe50c 100644
--- a/sky/engine/core/editing/InputMethodController.cpp
+++ b/sky/engine/core/editing/InputMethodController.cpp
@@ -306,7 +306,7 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp
// TODO(ojan): What was this for? Do we need it in sky since we
// don't need to support legacy IMEs?
if (baseNode->renderer())
- baseNode->renderer()->scheduleVisualUpdate();
+ baseNode->document().scheduleVisualUpdate();
unsigned start = std::min(baseOffset + selectionStart, extentOffset);
unsigned end = std::min(std::max(start, baseOffset + selectionEnd), extentOffset);
@@ -344,7 +344,7 @@ void InputMethodController::setCompositionFromExistingText(const Vector<Composit
// TODO(ojan): What was this for? Do we need it in sky since we
// don't need to support legacy IMEs?
if (baseNode->renderer())
- baseNode->renderer()->scheduleVisualUpdate();
+ baseNode->document().scheduleVisualUpdate();
return;
}
« no previous file with comments | « sky/engine/core/editing/FrameSelection.cpp ('k') | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698