| OLD | NEW |
| 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 Loading... |
| 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 | |
| 131 // See GraphicsLayerClient.h for accepted flags. | 129 // See GraphicsLayerClient.h for accepted flags. |
| 132 String layerTreeAsText(unsigned flags = 0) const; | 130 String layerTreeAsText(unsigned flags = 0) const; |
| 133 | 131 |
| 134 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi
ze& originalPageSize, float maximumShrinkRatio); | 132 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi
ze& originalPageSize, float maximumShrinkRatio); |
| 135 bool shouldUsePrintingLayout() const; | 133 bool shouldUsePrintingLayout() const; |
| 136 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con
st FloatSize& expectedSize); | 134 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con
st FloatSize& expectedSize); |
| 137 | 135 |
| 138 bool inViewSourceMode() const; | 136 bool inViewSourceMode() const; |
| 139 void setInViewSourceMode(bool = true); | 137 void setInViewSourceMode(bool = true); |
| 140 | 138 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(),
localFrame.isLocalFrame()); | 301 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(),
localFrame.isLocalFrame()); |
| 304 | 302 |
| 305 } // namespace blink | 303 } // namespace blink |
| 306 | 304 |
| 307 // During refactoring, there are some places where we need to do type conversion
s that | 305 // During refactoring, there are some places where we need to do type conversion
s that |
| 308 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. | 306 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. |
| 309 // At that time this #define will be removed and all the uses of it will need to
be corrected. | 307 // At that time this #define will be removed and all the uses of it will need to
be corrected. |
| 310 #define toLocalFrameTemporary toLocalFrame | 308 #define toLocalFrameTemporary toLocalFrame |
| 311 | 309 |
| 312 #endif // LocalFrame_h | 310 #endif // LocalFrame_h |
| OLD | NEW |