| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 #include "core/page/FrameView.h" | 93 #include "core/page/FrameView.h" |
| 94 #include "core/page/Page.h" | 94 #include "core/page/Page.h" |
| 95 #include "core/page/PrintContext.h" | 95 #include "core/page/PrintContext.h" |
| 96 #include "core/page/Settings.h" | 96 #include "core/page/Settings.h" |
| 97 #include "core/page/animation/AnimationController.h" | 97 #include "core/page/animation/AnimationController.h" |
| 98 #include "core/page/scrolling/ScrollingCoordinator.h" | 98 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 99 #include "core/platform/ColorChooser.h" | 99 #include "core/platform/ColorChooser.h" |
| 100 #include "core/platform/Cursor.h" | 100 #include "core/platform/Cursor.h" |
| 101 #include "core/platform/Language.h" | 101 #include "core/platform/Language.h" |
| 102 #include "core/platform/graphics/IntRect.h" | 102 #include "core/platform/graphics/IntRect.h" |
| 103 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h" |
| 103 #include "core/rendering/RenderMenuList.h" | 104 #include "core/rendering/RenderMenuList.h" |
| 104 #include "core/rendering/RenderObject.h" | 105 #include "core/rendering/RenderObject.h" |
| 105 #include "core/rendering/RenderTreeAsText.h" | 106 #include "core/rendering/RenderTreeAsText.h" |
| 106 #include "core/rendering/RenderView.h" | 107 #include "core/rendering/RenderView.h" |
| 107 #include "core/workers/WorkerThread.h" | 108 #include "core/workers/WorkerThread.h" |
| 108 #include "weborigin/SchemeRegistry.h" | 109 #include "weborigin/SchemeRegistry.h" |
| 109 #include "wtf/dtoa.h" | 110 #include "wtf/dtoa.h" |
| 110 #include "wtf/text/StringBuffer.h" | 111 #include "wtf/text/StringBuffer.h" |
| 111 | 112 |
| 112 #include "core/page/PagePopupController.h" | 113 #include "core/page/PagePopupController.h" |
| (...skipping 1934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2047 HTMLSelectElement* select = toHTMLSelectElement(node); | 2048 HTMLSelectElement* select = toHTMLSelectElement(node); |
| 2048 | 2049 |
| 2049 RenderObject* renderer = select->renderer(); | 2050 RenderObject* renderer = select->renderer(); |
| 2050 if (!renderer->isMenuList()) | 2051 if (!renderer->isMenuList()) |
| 2051 return false; | 2052 return false; |
| 2052 | 2053 |
| 2053 RenderMenuList* menuList = toRenderMenuList(renderer); | 2054 RenderMenuList* menuList = toRenderMenuList(renderer); |
| 2054 return menuList->popupIsVisible(); | 2055 return menuList->popupIsVisible(); |
| 2055 } | 2056 } |
| 2056 | 2057 |
| 2058 bool Internals::loseSharedGraphicsContext3D() |
| 2059 { |
| 2060 RefPtr<GraphicsContext3D> sharedContext = SharedGraphicsContext3D::get(); |
| 2061 if (!sharedContext) |
| 2062 return false; |
| 2063 sharedContext->getExtensions()->loseContextCHROMIUM(Extensions3D::GUILTY_CON
TEXT_RESET_ARB, Extensions3D::INNOCENT_CONTEXT_RESET_ARB); |
| 2064 // To prevent tests that call loseSharedGraphicsContext3D from being |
| 2065 // flaky, we call finish so that the context is guaranteed to be lost |
| 2066 // synchronously (i.e. before returning). |
| 2067 sharedContext->finish(); |
| 2068 return true; |
| 2057 } | 2069 } |
| 2070 |
| 2071 } |
| OLD | NEW |