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

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

Issue 640023002: The selection bounds should be clipped to the viewport (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline a test. Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void setFocusedNodeIfNeeded(); 194 void setFocusedNodeIfNeeded();
195 void notifyRendererOfSelectionChange(EUserTriggered); 195 void notifyRendererOfSelectionChange(EUserTriggered);
196 196
197 EditingStyle* typingStyle() const; 197 EditingStyle* typingStyle() const;
198 void setTypingStyle(PassRefPtrWillBeRawPtr<EditingStyle>); 198 void setTypingStyle(PassRefPtrWillBeRawPtr<EditingStyle>);
199 void clearTypingStyle(); 199 void clearTypingStyle();
200 200
201 String selectedText() const; 201 String selectedText() const;
202 String selectedTextForClipboard() const; 202 String selectedTextForClipboard() const;
203 203
204 FloatRect bounds() const; 204 // The bounds are clipped to the viewport as this is what callers expect.
205 LayoutRect bounds() const;
206 LayoutRect unclippedBounds() const;
205 207
206 HTMLFormElement* currentForm() const; 208 HTMLFormElement* currentForm() const;
207 209
208 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf Needed, RevealExtentOption = DoNotRevealExtent); 210 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf Needed, RevealExtentOption = DoNotRevealExtent);
209 void setSelectionFromNone(); 211 void setSelectionFromNone();
210 212
211 void setShouldShowBlockCursor(bool); 213 void setShouldShowBlockCursor(bool);
212 214
213 // VisibleSelection::ChangeObserver interface. 215 // VisibleSelection::ChangeObserver interface.
214 virtual void didChangeVisibleSelection() override; 216 virtual void didChangeVisibleSelection() override;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 308 }
307 } // namespace blink 309 } // namespace blink
308 310
309 #ifndef NDEBUG 311 #ifndef NDEBUG
310 // Outside the WebCore namespace for ease of invocation from gdb. 312 // Outside the WebCore namespace for ease of invocation from gdb.
311 void showTree(const blink::FrameSelection&); 313 void showTree(const blink::FrameSelection&);
312 void showTree(const blink::FrameSelection*); 314 void showTree(const blink::FrameSelection*);
313 #endif 315 #endif
314 316
315 #endif // FrameSelection_h 317 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/transforms/selection-bounds-in-transformed-view-expected.txt ('k') | Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698