| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/plugins/PluginOcclusionSupport.h" | 32 #include "core/plugins/PluginOcclusionSupport.h" |
| 33 | 33 |
| 34 #include "HTMLNames.h" | 34 #include "HTMLNames.h" |
| 35 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
| 36 #include "core/html/HTMLElement.h" | 36 #include "core/html/HTMLElement.h" |
| 37 #include "core/html/HTMLFrameOwnerElement.h" | 37 #include "core/html/HTMLFrameOwnerElement.h" |
| 38 #include "core/frame/Frame.h" | 38 #include "core/frame/Frame.h" |
| 39 #include "core/frame/FrameView.h" | 39 #include "core/frame/FrameView.h" |
| 40 #include "core/platform/Widget.h" | |
| 41 #include "core/rendering/RenderBox.h" | 40 #include "core/rendering/RenderBox.h" |
| 42 #include "core/rendering/RenderObject.h" | 41 #include "core/rendering/RenderObject.h" |
| 42 #include "platform/Widget.h" |
| 43 #include "wtf/HashSet.h" | 43 #include "wtf/HashSet.h" |
| 44 | 44 |
| 45 // This file provides a utility function to support rendering certain elements a
bove plugins. | 45 // This file provides a utility function to support rendering certain elements a
bove plugins. |
| 46 | 46 |
| 47 namespace WebCore { | 47 namespace WebCore { |
| 48 | 48 |
| 49 static void getObjectStack(const RenderObject* ro, Vector<const RenderObject*>*
roStack) | 49 static void getObjectStack(const RenderObject* ro, Vector<const RenderObject*>*
roStack) |
| 50 { | 50 { |
| 51 roStack->clear(); | 51 roStack->clear(); |
| 52 while (ro) { | 52 while (ro) { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // as being in the top layer. | 193 // as being in the top layer. |
| 194 const Element* ancestor = topLayerAncestor(element); | 194 const Element* ancestor = topLayerAncestor(element); |
| 195 Document* document = parentFrameView->frame().document(); | 195 Document* document = parentFrameView->frame().document(); |
| 196 const Vector<RefPtr<Element> >& elements = document->topLayerElements(); | 196 const Vector<RefPtr<Element> >& elements = document->topLayerElements(); |
| 197 size_t start = ancestor ? elements.find(ancestor) + 1 : 0; | 197 size_t start = ancestor ? elements.find(ancestor) + 1 : 0; |
| 198 for (size_t i = start; i < elements.size(); ++i) | 198 for (size_t i = start; i < elements.size(); ++i) |
| 199 addTreeToOcclusions(elements[i]->renderer(), frameRect, occlusions); | 199 addTreeToOcclusions(elements[i]->renderer(), frameRect, occlusions); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace WebCore | 202 } // namespace WebCore |
| OLD | NEW |