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

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

Issue 1309413006: Move VisibleSelection::ChangeObserver out from VisibleSelection class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-04T15:50:42 Created 5 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 unified diff | Download patch
« no previous file with comments | « Source/core/editing/FrameSelection.h ('k') | Source/core/editing/VisibleSelection.h » ('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 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 #endif 1995 #endif
1996 1996
1997 DEFINE_TRACE(FrameSelection) 1997 DEFINE_TRACE(FrameSelection)
1998 { 1998 {
1999 visitor->trace(m_frame); 1999 visitor->trace(m_frame);
2000 visitor->trace(m_selection); 2000 visitor->trace(m_selection);
2001 visitor->trace(m_originalBase); 2001 visitor->trace(m_originalBase);
2002 visitor->trace(m_logicalRange); 2002 visitor->trace(m_logicalRange);
2003 visitor->trace(m_previousCaretNode); 2003 visitor->trace(m_previousCaretNode);
2004 visitor->trace(m_typingStyle); 2004 visitor->trace(m_typingStyle);
2005 VisibleSelection::ChangeObserver::trace(visitor); 2005 VisibleSelectionChangeObserver::trace(visitor);
2006 } 2006 }
2007 2007
2008 void FrameSelection::setCaretRectNeedsUpdate() 2008 void FrameSelection::setCaretRectNeedsUpdate()
2009 { 2009 {
2010 m_caretRectDirty = true; 2010 m_caretRectDirty = true;
2011 2011
2012 scheduleVisualUpdate(); 2012 scheduleVisualUpdate();
2013 } 2013 }
2014 2014
2015 void FrameSelection::scheduleVisualUpdate() const 2015 void FrameSelection::scheduleVisualUpdate() const
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
2091 2091
2092 void showTree(const blink::FrameSelection* sel) 2092 void showTree(const blink::FrameSelection* sel)
2093 { 2093 {
2094 if (sel) 2094 if (sel)
2095 sel->showTreeForThis(); 2095 sel->showTreeForThis();
2096 else 2096 else
2097 fprintf(stderr, "Cannot showTree for (nil) FrameSelection.\n"); 2097 fprintf(stderr, "Cannot showTree for (nil) FrameSelection.\n");
2098 } 2098 }
2099 2099
2100 #endif 2100 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/FrameSelection.h ('k') | Source/core/editing/VisibleSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698