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

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

Issue 2703313002: Expand FrameSeleciton::end() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T12:26:29 Created 3 years, 10 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 | « no previous file | third_party/WebKit/Source/core/editing/InputMethodController.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, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 Position base() const { 198 Position base() const {
199 return computeVisibleSelectionInDOMTreeDeprecated().base(); 199 return computeVisibleSelectionInDOMTreeDeprecated().base();
200 } 200 }
201 Position extent() const { 201 Position extent() const {
202 return computeVisibleSelectionInDOMTreeDeprecated().extent(); 202 return computeVisibleSelectionInDOMTreeDeprecated().extent();
203 } 203 }
204 Position start() const { 204 Position start() const {
205 return computeVisibleSelectionInDOMTreeDeprecated().start(); 205 return computeVisibleSelectionInDOMTreeDeprecated().start();
206 } 206 }
207 Position end() const {
208 return computeVisibleSelectionInDOMTreeDeprecated().end();
209 }
210 207
211 // Returns true if specified layout block should paint caret. This function is 208 // Returns true if specified layout block should paint caret. This function is
212 // called during painting only. 209 // called during painting only.
213 bool shouldPaintCaret(const LayoutBlock&) const; 210 bool shouldPaintCaret(const LayoutBlock&) const;
214 211
215 // Bounds of (possibly transformed) caret in absolute coords 212 // Bounds of (possibly transformed) caret in absolute coords
216 IntRect absoluteCaretBounds(); 213 IntRect absoluteCaretBounds();
217 214
218 void didChangeFocus(); 215 void didChangeFocus();
219 216
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 367
371 } // namespace blink 368 } // namespace blink
372 369
373 #ifndef NDEBUG 370 #ifndef NDEBUG
374 // Outside the WebCore namespace for ease of invocation from gdb. 371 // Outside the WebCore namespace for ease of invocation from gdb.
375 void showTree(const blink::FrameSelection&); 372 void showTree(const blink::FrameSelection&);
376 void showTree(const blink::FrameSelection*); 373 void showTree(const blink::FrameSelection*);
377 #endif 374 #endif
378 375
379 #endif // FrameSelection_h 376 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/InputMethodController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698