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

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

Issue 2708213006: Expand FrameSeleciton::hasEditableStyle() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-23T18:38:07 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 side-by-side diff with in-line comments
Download patch
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 e64e78de969f5615c9e4ab38f5702af910c7b31b..7d88e250c1fb081613fe9ce2d39a081356331e03 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -474,8 +474,9 @@ void FrameSelection::invalidatePaintIfNeeded(
bool FrameSelection::shouldPaintCaret(const LayoutBlock& block) const {
DCHECK_GE(document().lifecycle().state(), DocumentLifecycle::LayoutClean);
bool result = m_frameCaret->shouldPaintCaret(block);
- DCHECK(!result || (computeVisibleSelectionInDOMTreeDeprecated().isCaret() &&
- hasEditableStyle()));
+ DCHECK(!result ||
+ (computeVisibleSelectionInDOMTreeDeprecated().isCaret() &&
+ computeVisibleSelectionInDOMTree().hasEditableStyle()));
return result;
}

Powered by Google App Engine
This is Rietveld 408576698