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

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

Issue 369673008: [Cleanup] No need for extra boolean variable in FrameSelection::caretBlinkTimerFired (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/FrameSelection.cpp
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp
index a51014f37a7e1698914eba7d07a2442ef69c4bf7..b4708c0e8c02f371b0343e84f2dc02f5b53d1d9d 100644
--- a/Source/core/editing/FrameSelection.cpp
+++ b/Source/core/editing/FrameSelection.cpp
@@ -1629,10 +1629,9 @@ void FrameSelection::caretBlinkTimerFired(Timer<FrameSelection>*)
{
ASSERT(caretIsVisible());
ASSERT(isCaret());
- bool caretPaint = m_caretPaint;
- if (isCaretBlinkingSuspended() && caretPaint)
+ if (isCaretBlinkingSuspended() && m_caretPaint)
return;
- m_caretPaint = !caretPaint;
+ m_caretPaint = !m_caretPaint;
invalidateCaretRect();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698