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

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

Issue 2702403004: Expand FrameSeleciton::start() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-22T12:32:36 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
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 TextGranularity); 185 TextGranularity);
186 186
187 TextGranularity granularity() const { return m_granularity; } 187 TextGranularity granularity() const { return m_granularity; }
188 188
189 Position base() const { 189 Position base() const {
190 return computeVisibleSelectionInDOMTreeDeprecated().base(); 190 return computeVisibleSelectionInDOMTreeDeprecated().base();
191 } 191 }
192 Position extent() const { 192 Position extent() const {
193 return computeVisibleSelectionInDOMTreeDeprecated().extent(); 193 return computeVisibleSelectionInDOMTreeDeprecated().extent();
194 } 194 }
195 Position start() const {
196 return computeVisibleSelectionInDOMTreeDeprecated().start();
197 }
198 195
199 // Returns true if specified layout block should paint caret. This function is 196 // Returns true if specified layout block should paint caret. This function is
200 // called during painting only. 197 // called during painting only.
201 bool shouldPaintCaret(const LayoutBlock&) const; 198 bool shouldPaintCaret(const LayoutBlock&) const;
202 199
203 // Bounds of (possibly transformed) caret in absolute coords 200 // Bounds of (possibly transformed) caret in absolute coords
204 IntRect absoluteCaretBounds(); 201 IntRect absoluteCaretBounds();
205 202
206 void didChangeFocus(); 203 void didChangeFocus();
207 204
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 349
353 } // namespace blink 350 } // namespace blink
354 351
355 #ifndef NDEBUG 352 #ifndef NDEBUG
356 // Outside the WebCore namespace for ease of invocation from gdb. 353 // Outside the WebCore namespace for ease of invocation from gdb.
357 void showTree(const blink::FrameSelection&); 354 void showTree(const blink::FrameSelection&);
358 void showTree(const blink::FrameSelection*); 355 void showTree(const blink::FrameSelection*);
359 #endif 356 #endif
360 357
361 #endif // FrameSelection_h 358 #endif // FrameSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698