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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 13 matching lines...) Expand all
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #include "core/inspector/InspectorLayerTreeAgent.h" 32 #include "core/inspector/InspectorLayerTreeAgent.h"
33 33
34 #include <memory>
34 #include "core/dom/DOMNodeIds.h" 35 #include "core/dom/DOMNodeIds.h"
35 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
36 #include "core/frame/FrameHost.h" 37 #include "core/frame/FrameHost.h"
37 #include "core/frame/FrameView.h" 38 #include "core/frame/FrameView.h"
38 #include "core/frame/LocalFrame.h" 39 #include "core/frame/LocalFrame.h"
39 #include "core/frame/VisualViewport.h" 40 #include "core/frame/VisualViewport.h"
40 #include "core/inspector/IdentifiersFactory.h" 41 #include "core/inspector/IdentifiersFactory.h"
41 #include "core/inspector/InspectedFrames.h" 42 #include "core/inspector/InspectedFrames.h"
42 #include "core/layout/LayoutPart.h" 43 #include "core/layout/LayoutPart.h"
43 #include "core/layout/api/LayoutViewItem.h" 44 #include "core/layout/api/LayoutViewItem.h"
44 #include "core/layout/compositing/CompositedLayerMapping.h" 45 #include "core/layout/compositing/CompositedLayerMapping.h"
45 #include "core/layout/compositing/PaintLayerCompositor.h" 46 #include "core/layout/compositing/PaintLayerCompositor.h"
46 #include "core/loader/DocumentLoader.h" 47 #include "core/loader/DocumentLoader.h"
47 #include "core/page/ChromeClient.h" 48 #include "core/page/ChromeClient.h"
48 #include "platform/geometry/IntRect.h" 49 #include "platform/geometry/IntRect.h"
49 #include "platform/graphics/CompositingReasons.h" 50 #include "platform/graphics/CompositingReasons.h"
50 #include "platform/graphics/GraphicsLayer.h" 51 #include "platform/graphics/GraphicsLayer.h"
51 #include "platform/graphics/PictureSnapshot.h" 52 #include "platform/graphics/PictureSnapshot.h"
52 #include "platform/image-encoders/PNGImageEncoder.h" 53 #include "platform/image-encoders/PNGImageEncoder.h"
53 #include "platform/transforms/TransformationMatrix.h" 54 #include "platform/transforms/TransformationMatrix.h"
54 #include "public/platform/WebFloatPoint.h" 55 #include "public/platform/WebFloatPoint.h"
55 #include "public/platform/WebLayer.h" 56 #include "public/platform/WebLayer.h"
56 #include "wtf/text/Base64.h" 57 #include "wtf/text/Base64.h"
57 #include "wtf/text/StringBuilder.h" 58 #include "wtf/text/StringBuilder.h"
58 #include <memory>
59 59
60 namespace blink { 60 namespace blink {
61 61
62 using protocol::Array; 62 using protocol::Array;
63 unsigned InspectorLayerTreeAgent::s_lastSnapshotId; 63 unsigned InspectorLayerTreeAgent::s_lastSnapshotId;
64 64
65 inline String idForLayer(const GraphicsLayer* graphicsLayer) { 65 inline String idForLayer(const GraphicsLayer* graphicsLayer) {
66 return String::number(graphicsLayer->platformLayer()->id()); 66 return String::number(graphicsLayer->platformLayer()->id());
67 } 67 }
68 68
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 498 }
499 499
500 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) { 500 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) {
501 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); 501 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id());
502 if (index == WTF::kNotFound) 502 if (index == WTF::kNotFound)
503 return; 503 return;
504 m_pageOverlayLayerIds.remove(index); 504 m_pageOverlayLayerIds.remove(index);
505 } 505 }
506 506
507 } // namespace blink 507 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698