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

Unified Diff: third_party/WebKit/Source/core/editing/FrameCaret.cpp

Issue 2381373002: Disable caret blinking for blimp (Closed)
Patch Set: Created 4 years, 3 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/FrameCaret.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameCaret.cpp b/third_party/WebKit/Source/core/editing/FrameCaret.cpp
index 78a623abfa1d66a43ef88c838cd7b7193f60c91b..97a6b46fd53dfd5280fae8b44cbdbfd0a70e6f9a 100644
--- a/third_party/WebKit/Source/core/editing/FrameCaret.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameCaret.cpp
@@ -260,6 +260,9 @@ bool FrameCaret::shouldBlinkCaret() const
if (m_frame->settings() && m_frame->settings()->caretBrowsingEnabled())
return false;
+ if (m_frame->settings() && m_frame->settings()->disableCaretBlinking())
+ return false;
+
Element* root = rootEditableElementOf(caretPosition().position());
if (!root)
return false;

Powered by Google App Engine
This is Rietveld 408576698