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

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

Issue 329183002: Removing "using" declarations that import names in the C++ Standard library. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "core/rendering/RenderView.h" 59 #include "core/rendering/RenderView.h"
60 #include "core/rendering/compositing/RenderLayerCompositor.h" 60 #include "core/rendering/compositing/RenderLayerCompositor.h"
61 #include "core/svg/SVGDocumentExtensions.h" 61 #include "core/svg/SVGDocumentExtensions.h"
62 #include "platform/DragImage.h" 62 #include "platform/DragImage.h"
63 #include "platform/graphics/GraphicsContext.h" 63 #include "platform/graphics/GraphicsContext.h"
64 #include "platform/graphics/ImageBuffer.h" 64 #include "platform/graphics/ImageBuffer.h"
65 #include "platform/text/TextStream.h" 65 #include "platform/text/TextStream.h"
66 #include "wtf/PassOwnPtr.h" 66 #include "wtf/PassOwnPtr.h"
67 #include "wtf/StdLibExtras.h" 67 #include "wtf/StdLibExtras.h"
68 68
69 using namespace std;
70
71 namespace WebCore { 69 namespace WebCore {
72 70
73 using namespace HTMLNames; 71 using namespace HTMLNames;
74 72
75 static inline float parentPageZoomFactor(LocalFrame* frame) 73 static inline float parentPageZoomFactor(LocalFrame* frame)
76 { 74 {
77 Frame* parent = frame->tree().parent(); 75 Frame* parent = frame->tree().parent();
78 if (!parent || !parent->isLocalFrame()) 76 if (!parent || !parent->isLocalFrame())
79 return 1; 77 return 1;
80 return toLocalFrame(parent)->pageZoomFactor(); 78 return toLocalFrame(parent)->pageZoomFactor();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return; 174 return;
177 window->dispatchEvent(Event::create(EventTypeNames::orientationchange)); 175 window->dispatchEvent(Event::create(EventTypeNames::orientationchange));
178 176
179 // Notify subframes. 177 // Notify subframes.
180 Vector<RefPtr<LocalFrame> > childFrames; 178 Vector<RefPtr<LocalFrame> > childFrames;
181 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi bling()) { 179 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi bling()) {
182 if (child->isLocalFrame()) 180 if (child->isLocalFrame())
183 childFrames.append(toLocalFrame(child)); 181 childFrames.append(toLocalFrame(child));
184 } 182 }
185 183
186 for (size_t i = 0; i < childFrames.size(); ++i) 184 for (std::size_t i = 0; i < childFrames.size(); ++i)
187 childFrames[i]->sendOrientationChangeEvent(); 185 childFrames[i]->sendOrientationChangeEvent();
188 } 186 }
189 187
190 void LocalFrame::setPrinting(bool printing, const FloatSize& pageSize, const Flo atSize& originalPageSize, float maximumShrinkRatio) 188 void LocalFrame::setPrinting(bool printing, const FloatSize& pageSize, const Flo atSize& originalPageSize, float maximumShrinkRatio)
191 { 189 {
192 // In setting printing, we should not validate resources already cached for the document. 190 // In setting printing, we should not validate resources already cached for the document.
193 // See https://bugs.webkit.org/show_bug.cgi?id=43704 191 // See https://bugs.webkit.org/show_bug.cgi?id=43704
194 ResourceCacheValidationSuppressor validationSuppressor(document()->fetcher() ); 192 ResourceCacheValidationSuppressor validationSuppressor(document()->fetcher() );
195 193
196 document()->setPrinting(printing); 194 document()->setPrinting(printing);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 { 248 {
251 if (document()) 249 if (document())
252 document()->didChangeVisibilityState(); 250 document()->didChangeVisibilityState();
253 251
254 Vector<RefPtr<LocalFrame> > childFrames; 252 Vector<RefPtr<LocalFrame> > childFrames;
255 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi bling()) { 253 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi bling()) {
256 if (child->isLocalFrame()) 254 if (child->isLocalFrame())
257 childFrames.append(toLocalFrame(child)); 255 childFrames.append(toLocalFrame(child));
258 } 256 }
259 257
260 for (size_t i = 0; i < childFrames.size(); ++i) 258 for (std::size_t i = 0; i < childFrames.size(); ++i)
261 childFrames[i]->didChangeVisibilityState(); 259 childFrames[i]->didChangeVisibilityState();
262 } 260 }
263 261
264 void LocalFrame::willDetachFrameHost() 262 void LocalFrame::willDetachFrameHost()
265 { 263 {
266 // We should never be detatching the page during a Layout. 264 // We should never be detatching the page during a Layout.
267 RELEASE_ASSERT(!m_view || !m_view->isInPerformLayout()); 265 RELEASE_ASSERT(!m_view || !m_view->isInPerformLayout());
268 266
269 Frame* parent = tree().parent(); 267 Frame* parent = tree().parent();
270 if (parent && parent->isLocalFrame()) 268 if (parent && parent->isLocalFrame())
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 LocalFrame* LocalFrame::localFrameRoot() 654 LocalFrame* LocalFrame::localFrameRoot()
657 { 655 {
658 LocalFrame* curFrame = this; 656 LocalFrame* curFrame = this;
659 while (curFrame && curFrame->tree().parent() && curFrame->tree().parent()->i sLocalFrame()) 657 while (curFrame && curFrame->tree().parent() && curFrame->tree().parent()->i sLocalFrame())
660 curFrame = toLocalFrame(curFrame->tree().parent()); 658 curFrame = toLocalFrame(curFrame->tree().parent());
661 659
662 return curFrame; 660 return curFrame;
663 } 661 }
664 662
665 } // namespace WebCore 663 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698