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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutPart.cpp

Issue 2316533004: Don't include headers from the layout API from other headers needlessly. (Closed)
Patch Set: The runway sure is slippery today. Created 4 years, 3 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> 3 * (C) 2000 Simon Hausmann <hausmann@kde.org>
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 14 matching lines...) Expand all
25 #include "core/layout/LayoutPart.h" 25 #include "core/layout/LayoutPart.h"
26 26
27 #include "core/dom/AXObjectCache.h" 27 #include "core/dom/AXObjectCache.h"
28 #include "core/frame/FrameView.h" 28 #include "core/frame/FrameView.h"
29 #include "core/frame/LocalFrame.h" 29 #include "core/frame/LocalFrame.h"
30 #include "core/html/HTMLFrameElementBase.h" 30 #include "core/html/HTMLFrameElementBase.h"
31 #include "core/layout/HitTestResult.h" 31 #include "core/layout/HitTestResult.h"
32 #include "core/layout/LayoutAnalyzer.h" 32 #include "core/layout/LayoutAnalyzer.h"
33 #include "core/layout/LayoutView.h" 33 #include "core/layout/LayoutView.h"
34 #include "core/layout/api/LayoutAPIShim.h" 34 #include "core/layout/api/LayoutAPIShim.h"
35 #include "core/layout/api/LayoutViewItem.h"
35 #include "core/paint/PartPainter.h" 36 #include "core/paint/PartPainter.h"
36 #include "core/plugins/PluginView.h" 37 #include "core/plugins/PluginView.h"
37 38
38 namespace blink { 39 namespace blink {
39 40
40 LayoutPart::LayoutPart(Element* element) 41 LayoutPart::LayoutPart(Element* element)
41 : LayoutReplaced(element) 42 : LayoutReplaced(element)
42 // Reference counting is used to prevent the part from being destroyed 43 // Reference counting is used to prevent the part from being destroyed
43 // while inside the Widget code, which might not be able to handle that. 44 // while inside the Widget code, which might not be able to handle that.
44 , m_refCount(1) 45 , m_refCount(1)
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 370
370 bool LayoutPart::isThrottledFrameView() const 371 bool LayoutPart::isThrottledFrameView() const
371 { 372 {
372 if (!widget() || !widget()->isFrameView()) 373 if (!widget() || !widget()->isFrameView())
373 return false; 374 return false;
374 const FrameView* frameView = toFrameView(widget()); 375 const FrameView* frameView = toFrameView(widget());
375 return frameView->shouldThrottleRendering(); 376 return frameView->shouldThrottleRendering();
376 } 377 }
377 378
378 } // namespace blink 379 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698