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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2665823002: Invalidate caret during paint invalidation (Closed)
Patch Set: Rebaseline 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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
9 * reserved. 9 * reserved.
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ScriptController& script() const; 145 ScriptController& script() const;
146 SpellChecker& spellChecker() const; 146 SpellChecker& spellChecker() const;
147 FrameConsole& console() const; 147 FrameConsole& console() const;
148 IdleSpellCheckCallback& idleSpellCheckCallback() const; 148 IdleSpellCheckCallback& idleSpellCheckCallback() const;
149 149
150 // This method is used to get the highest level LocalFrame in this 150 // This method is used to get the highest level LocalFrame in this
151 // frame's in-process subtree. 151 // frame's in-process subtree.
152 // FIXME: This is a temporary hack to support RemoteFrames, and callers 152 // FIXME: This is a temporary hack to support RemoteFrames, and callers
153 // should be updated to avoid storing things on the main frame. 153 // should be updated to avoid storing things on the main frame.
154 LocalFrame* localFrameRoot(); 154 LocalFrame* localFrameRoot();
155 const LocalFrame* localFrameRoot() const {
156 return const_cast<LocalFrame*>(this)->localFrameRoot();
157 }
155 158
156 // Note that the result of this function should not be cached: a frame is 159 // Note that the result of this function should not be cached: a frame is
157 // not necessarily detached when it is navigated, so the return value can 160 // not necessarily detached when it is navigated, so the return value can
158 // change. 161 // change.
159 // In addition, this function will always return true for a detached frame. 162 // In addition, this function will always return true for a detached frame.
160 // TODO(dcheng): Move this to LocalDOMWindow and figure out the right 163 // TODO(dcheng): Move this to LocalDOMWindow and figure out the right
161 // behavior for detached windows. 164 // behavior for detached windows.
162 bool isCrossOriginSubframe() const; 165 bool isCrossOriginSubframe() const;
163 166
164 InstrumentingAgents* instrumentingAgents() { 167 InstrumentingAgents* instrumentingAgents() {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 explicit ScopedFrameBlamer(LocalFrame*); 380 explicit ScopedFrameBlamer(LocalFrame*);
378 ~ScopedFrameBlamer(); 381 ~ScopedFrameBlamer();
379 382
380 private: 383 private:
381 Member<LocalFrame> m_frame; 384 Member<LocalFrame> m_frame;
382 }; 385 };
383 386
384 } // namespace blink 387 } // namespace blink
385 388
386 #endif // LocalFrame_h 389 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698