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

Unified Diff: sky/engine/core/editing/FrameSelection.cpp

Issue 834693007: Remove the remaining parts of ignorePendingStylesheets and placeholder styles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove comment. Created 5 years, 11 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 | « sky/engine/core/editing/EditorCommand.cpp ('k') | sky/engine/core/editing/InsertLineBreakCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/editing/FrameSelection.cpp
diff --git a/sky/engine/core/editing/FrameSelection.cpp b/sky/engine/core/editing/FrameSelection.cpp
index 0f59a3234d1f7a908c2b964911e155375286acb1..4d09f7b36b45cec76a70355e7bec50ad80cd7cc9 100644
--- a/sky/engine/core/editing/FrameSelection.cpp
+++ b/sky/engine/core/editing/FrameSelection.cpp
@@ -1200,7 +1200,7 @@ static bool isNonOrphanedCaret(const VisibleSelection& selection)
IntRect FrameSelection::absoluteCaretBounds()
{
ASSERT(m_frame->document()->lifecycle().state() != DocumentLifecycle::InPaintInvalidation);
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateLayout();
if (!isNonOrphanedCaret(m_selection)) {
clearCaretRect();
} else {
@@ -1466,7 +1466,7 @@ void FrameSelection::updateAppearance(ResetCaretBlinkOption option)
return;
}
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateLayout();
// Use the rightmost candidate for the start of the selection, and the leftmost candidate for the end of the selection.
// Example: foo <a>bar</a>. Imagine that a line wrap occurs after 'foo', and that 'bar' is selected. If we pass [foo, 3]
@@ -1627,7 +1627,7 @@ void FrameSelection::setShouldShowBlockCursor(bool shouldShowBlockCursor)
{
m_shouldShowBlockCursor = shouldShowBlockCursor;
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateLayout();
updateAppearance();
}
« no previous file with comments | « sky/engine/core/editing/EditorCommand.cpp ('k') | sky/engine/core/editing/InsertLineBreakCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698