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

Unified Diff: sky/engine/core/dom/Element.cpp

Issue 791023006: Delete invalidateTreeIfNeeded. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove unneeded call 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/dom/Document.cpp ('k') | sky/engine/core/editing/InputMethodController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Element.cpp
diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
index 2461e5d58b85dd1104ec9f1e88edb42ff5917779..cf55f981df2707e9c09118586ef74a15563e751a 100644
--- a/sky/engine/core/dom/Element.cpp
+++ b/sky/engine/core/dom/Element.cpp
@@ -1290,13 +1290,12 @@ bool Element::isMouseFocusable() const
void Element::willCallDefaultEventHandler(const Event& event)
{
+ // FIXME(sky): wasFocusedByMouse always returns false. Remove this function.
if (!wasFocusedByMouse())
return;
if (!event.isKeyboardEvent() || event.type() != EventTypeNames::keydown)
return;
setWasFocusedByMouse(false);
- if (renderer())
- renderer()->setShouldDoFullPaintInvalidation(true);
}
void Element::dispatchFocusEvent(Element* oldFocusedElement, FocusType type)
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/editing/InputMethodController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698