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

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

Issue 927773002: Keep track of multiple layout roots (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix inspector tests Created 5 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 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // should be updated to avoid storing things on the main frame. 126 // should be updated to avoid storing things on the main frame.
127 LocalFrame* localFrameRoot(); 127 LocalFrame* localFrameRoot();
128 128
129 InstrumentingAgents* instrumentingAgents(); 129 InstrumentingAgents* instrumentingAgents();
130 void setInstrumentingAgents(InstrumentingAgents*); 130 void setInstrumentingAgents(InstrumentingAgents*);
131 131
132 // ======== All public functions below this point are candidates to move out of LocalFrame into another class. ======== 132 // ======== All public functions below this point are candidates to move out of LocalFrame into another class. ========
133 133
134 bool inScope(TreeScope*) const; 134 bool inScope(TreeScope*) const;
135 135
136 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& t otalObjects, bool& isPartial);
137
138 // See GraphicsLayerClient.h for accepted flags. 136 // See GraphicsLayerClient.h for accepted flags.
139 String layerTreeAsText(unsigned flags = 0) const; 137 String layerTreeAsText(unsigned flags = 0) const;
140 138
141 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio); 139 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio);
142 bool shouldUsePrintingLayout() const; 140 bool shouldUsePrintingLayout() const;
143 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize); 141 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize);
144 142
145 bool inViewSourceMode() const; 143 bool inViewSourceMode() const;
146 void setInViewSourceMode(bool = true); 144 void setInViewSourceMode(bool = true);
147 145
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame()); 302 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame());
305 303
306 } // namespace blink 304 } // namespace blink
307 305
308 // During refactoring, there are some places where we need to do type conversion s that 306 // During refactoring, there are some places where we need to do type conversion s that
309 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out. 307 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out.
310 // At that time this #define will be removed and all the uses of it will need to be corrected. 308 // At that time this #define will be removed and all the uses of it will need to be corrected.
311 #define toLocalFrameTemporary toLocalFrame 309 #define toLocalFrameTemporary toLocalFrame
312 310
313 #endif // LocalFrame_h 311 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698