OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 #include "modules/plugins/PluginOcclusionSupport.h" | 31 #include "modules/plugins/PluginOcclusionSupport.h" |
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" | |
42 #include "platform/wtf/HashSet.h" | 41 #include "platform/wtf/HashSet.h" |
43 | 42 |
44 // This file provides a utility function to support rendering certain elements | 43 // This file provides a utility function to support rendering certain elements |
45 // above plugins. | 44 // above plugins. |
46 | 45 |
47 namespace blink { | 46 namespace blink { |
48 | 47 |
49 static void GetObjectStack(const LayoutObject* ro, | 48 static void GetObjectStack(const LayoutObject* ro, |
50 Vector<const LayoutObject*>* ro_stack) { | 49 Vector<const LayoutObject*>* ro_stack) { |
51 ro_stack->clear(); | 50 ro_stack->clear(); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // as being in the top layer. | 194 // as being in the top layer. |
196 const Element* ancestor = TopLayerAncestor(element); | 195 const Element* ancestor = TopLayerAncestor(element); |
197 Document* document = parent->GetFrame().GetDocument(); | 196 Document* document = parent->GetFrame().GetDocument(); |
198 const HeapVector<Member<Element>>& elements = document->TopLayerElements(); | 197 const HeapVector<Member<Element>>& elements = document->TopLayerElements(); |
199 size_t start = ancestor ? elements.Find(ancestor) + 1 : 0; | 198 size_t start = ancestor ? elements.Find(ancestor) + 1 : 0; |
200 for (size_t i = start; i < elements.size(); ++i) | 199 for (size_t i = start; i < elements.size(); ++i) |
201 AddTreeToOcclusions(elements[i]->GetLayoutObject(), frame_rect, occlusions); | 200 AddTreeToOcclusions(elements[i]->GetLayoutObject(), frame_rect, occlusions); |
202 } | 201 } |
203 | 202 |
204 } // namespace blink | 203 } // namespace blink |
OLD | NEW |