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

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelection.cpp

Issue 2315223002: Audit the use of updateStyleAndLayoutIgnorePendingStylesheets in FrameSelection::selectedText (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index 81b629de313f190fcb135211c1cd5dd35fcacc89..ac9d459816810b6aaf652f7d52ec8d9bc9ef4590 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -1071,13 +1071,6 @@ String FrameSelection::selectedHTMLForClipboard() const
String FrameSelection::selectedText(TextIteratorBehavior behavior) const
{
- if (!isAvailable())
yosin_UTC9 2016/09/07 09:58:25 Could you have |DCHECK(isAvailable())|, just in ca
Xiaocheng 2016/09/07 10:01:56 This |isAvailable()| check was added by myself a f
- return emptyString();
-
- // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- m_document->updateStyleAndLayoutIgnorePendingStylesheets();
-
return extractSelectedText(*this, behavior);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698