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

Side by Side Diff: third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 32
33 #include "core/HTMLNames.h" 33 #include "core/HTMLNames.h"
34 #include "core/dom/Element.h" 34 #include "core/dom/Element.h"
35 #include "core/frame/FrameView.h" 35 #include "core/frame/FrameView.h"
36 #include "core/frame/LocalFrame.h" 36 #include "core/frame/LocalFrame.h"
37 #include "core/html/HTMLElement.h" 37 #include "core/html/HTMLElement.h"
38 #include "core/html/HTMLFrameOwnerElement.h" 38 #include "core/html/HTMLFrameOwnerElement.h"
39 #include "core/layout/LayoutBox.h" 39 #include "core/layout/LayoutBox.h"
40 #include "core/layout/LayoutObject.h" 40 #include "core/layout/LayoutObject.h"
41 #include "platform/FrameViewBase.h" 41 #include "platform/FrameViewBase.h"
42 #include "wtf/HashSet.h" 42 #include "platform/wtf/HashSet.h"
43 43
44 // This file provides a utility function to support rendering certain elements 44 // This file provides a utility function to support rendering certain elements
45 // above plugins. 45 // above plugins.
46 46
47 namespace blink { 47 namespace blink {
48 48
49 static void GetObjectStack(const LayoutObject* ro, 49 static void GetObjectStack(const LayoutObject* ro,
50 Vector<const LayoutObject*>* ro_stack) { 50 Vector<const LayoutObject*>* ro_stack) {
51 ro_stack->Clear(); 51 ro_stack->Clear();
52 while (ro) { 52 while (ro) {
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // as being in the top layer. 203 // as being in the top layer.
204 const Element* ancestor = TopLayerAncestor(element); 204 const Element* ancestor = TopLayerAncestor(element);
205 Document* document = parent_frame_view->GetFrame().GetDocument(); 205 Document* document = parent_frame_view->GetFrame().GetDocument();
206 const HeapVector<Member<Element>>& elements = document->TopLayerElements(); 206 const HeapVector<Member<Element>>& elements = document->TopLayerElements();
207 size_t start = ancestor ? elements.Find(ancestor) + 1 : 0; 207 size_t start = ancestor ? elements.Find(ancestor) + 1 : 0;
208 for (size_t i = start; i < elements.size(); ++i) 208 for (size_t i = start; i < elements.size(); ++i)
209 AddTreeToOcclusions(elements[i]->GetLayoutObject(), frame_rect, occlusions); 209 AddTreeToOcclusions(elements[i]->GetLayoutObject(), frame_rect, occlusions);
210 } 210 }
211 211
212 } // namespace blink 212 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698