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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2665823002: Invalidate caret during paint invalidation (Closed)
Patch Set: Rebaseline Created 3 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
Index: third_party/WebKit/Source/core/frame/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index f6018a4f738d97af9208fa122e57dee1e6008822..b5ea07bd7585129d82cd1dbdd4f0aaf0f657de71 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -152,6 +152,9 @@ class CORE_EXPORT LocalFrame final : public Frame,
// FIXME: This is a temporary hack to support RemoteFrames, and callers
// should be updated to avoid storing things on the main frame.
LocalFrame* localFrameRoot();
+ const LocalFrame* localFrameRoot() const {
+ return const_cast<LocalFrame*>(this)->localFrameRoot();
+ }
// Note that the result of this function should not be cached: a frame is
// not necessarily detached when it is navigated, so the return value can

Powered by Google App Engine
This is Rietveld 408576698