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

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

Issue 1157563004: Revert of Update Blink to use the tree scope info on WebFrame for scoping checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // This method is used to get the highest level LocalFrame in this 119 // This method is used to get the highest level LocalFrame in this
120 // frame's in-process subtree. 120 // frame's in-process subtree.
121 // FIXME: This is a temporary hack to support RemoteFrames, and callers 121 // FIXME: This is a temporary hack to support RemoteFrames, and callers
122 // should be updated to avoid storing things on the main frame. 122 // should be updated to avoid storing things on the main frame.
123 LocalFrame* localFrameRoot(); 123 LocalFrame* localFrameRoot();
124 124
125 InstrumentingAgents* instrumentingAgents() const { return m_instrumentin gAgents.get(); } 125 InstrumentingAgents* instrumentingAgents() const { return m_instrumentin gAgents.get(); }
126 126
127 // ======== All public functions below this point are candidates to move out of LocalFrame into another class. ======== 127 // ======== All public functions below this point are candidates to move out of LocalFrame into another class. ========
128 128
129 bool inScope(TreeScope*) const;
130
129 // See GraphicsLayerClient.h for accepted flags. 131 // See GraphicsLayerClient.h for accepted flags.
130 String layerTreeAsText(unsigned flags = 0) const; 132 String layerTreeAsText(unsigned flags = 0) const;
131 133
132 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio); 134 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio);
133 bool shouldUsePrintingLayout() const; 135 bool shouldUsePrintingLayout() const;
134 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize); 136 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize);
135 137
136 bool inViewSourceMode() const; 138 bool inViewSourceMode() const;
137 void setInViewSourceMode(bool = true); 139 void setInViewSourceMode(bool = true);
138 140
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame()); 303 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame());
302 304
303 } // namespace blink 305 } // namespace blink
304 306
305 // During refactoring, there are some places where we need to do type conversion s that 307 // During refactoring, there are some places where we need to do type conversion s that
306 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out. 308 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out.
307 // At that time this #define will be removed and all the uses of it will need to be corrected. 309 // At that time this #define will be removed and all the uses of it will need to be corrected.
308 #define toLocalFrameTemporary toLocalFrame 310 #define toLocalFrameTemporary toLocalFrame
309 311
310 #endif // LocalFrame_h 312 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698