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

Side by Side Diff: Source/core/editing/FrameSelection.cpp

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ScriptRunner.cpp ('k') | Source/core/editing/SpellCheckRequester.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 if (!shouldBlink && m_caretPaint) { 1519 if (!shouldBlink && m_caretPaint) {
1520 m_caretPaint = false; 1520 m_caretPaint = false;
1521 invalidateCaretRect(); 1521 invalidateCaretRect();
1522 } 1522 }
1523 } 1523 }
1524 1524
1525 // Start blinking with a black caret. Be sure not to restart if we're 1525 // Start blinking with a black caret. Be sure not to restart if we're
1526 // already blinking in the right location. 1526 // already blinking in the right location.
1527 if (shouldBlink && !m_caretBlinkTimer.isActive()) { 1527 if (shouldBlink && !m_caretBlinkTimer.isActive()) {
1528 if (double blinkInterval = RenderTheme::theme().caretBlinkInterval()) 1528 if (double blinkInterval = RenderTheme::theme().caretBlinkInterval())
1529 m_caretBlinkTimer.startRepeating(blinkInterval); 1529 m_caretBlinkTimer.startRepeating(blinkInterval, FROM_HERE);
1530 1530
1531 if (!m_caretPaint) { 1531 if (!m_caretPaint) {
1532 m_caretPaint = true; 1532 m_caretPaint = true;
1533 invalidateCaretRect(); 1533 invalidateCaretRect();
1534 } 1534 }
1535 } 1535 }
1536 1536
1537 RenderView* view = m_frame->contentRenderer(); 1537 RenderView* view = m_frame->contentRenderer();
1538 if (!view) 1538 if (!view)
1539 return; 1539 return;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1830 sel.showTreeForThis(); 1830 sel.showTreeForThis();
1831 } 1831 }
1832 1832
1833 void showTree(const WebCore::FrameSelection* sel) 1833 void showTree(const WebCore::FrameSelection* sel)
1834 { 1834 {
1835 if (sel) 1835 if (sel)
1836 sel->showTreeForThis(); 1836 sel->showTreeForThis();
1837 } 1837 }
1838 1838
1839 #endif 1839 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptRunner.cpp ('k') | Source/core/editing/SpellCheckRequester.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698