| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 #include "core/page/FrameView.h" | 88 #include "core/page/FrameView.h" |
| 89 #include "core/page/Page.h" | 89 #include "core/page/Page.h" |
| 90 #include "core/page/PrintContext.h" | 90 #include "core/page/PrintContext.h" |
| 91 #include "core/page/Settings.h" | 91 #include "core/page/Settings.h" |
| 92 #include "core/page/animation/AnimationController.h" | 92 #include "core/page/animation/AnimationController.h" |
| 93 #include "core/page/scrolling/ScrollingCoordinator.h" | 93 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 94 #include "core/platform/ColorChooser.h" | 94 #include "core/platform/ColorChooser.h" |
| 95 #include "core/platform/Cursor.h" | 95 #include "core/platform/Cursor.h" |
| 96 #include "core/platform/Language.h" | 96 #include "core/platform/Language.h" |
| 97 #include "core/platform/graphics/IntRect.h" | 97 #include "core/platform/graphics/IntRect.h" |
| 98 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h" |
| 98 #include "core/rendering/RenderMenuList.h" | 99 #include "core/rendering/RenderMenuList.h" |
| 99 #include "core/rendering/RenderObject.h" | 100 #include "core/rendering/RenderObject.h" |
| 100 #include "core/rendering/RenderTreeAsText.h" | 101 #include "core/rendering/RenderTreeAsText.h" |
| 101 #include "core/rendering/RenderView.h" | 102 #include "core/rendering/RenderView.h" |
| 102 #include "core/workers/WorkerThread.h" | 103 #include "core/workers/WorkerThread.h" |
| 103 #include "weborigin/SchemeRegistry.h" | 104 #include "weborigin/SchemeRegistry.h" |
| 104 #include "wtf/dtoa.h" | 105 #include "wtf/dtoa.h" |
| 105 #include "wtf/text/StringBuffer.h" | 106 #include "wtf/text/StringBuffer.h" |
| 106 | 107 |
| 107 #include "core/page/PagePopupController.h" | 108 #include "core/page/PagePopupController.h" |
| (...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1956 HTMLSelectElement* select = toHTMLSelectElement(node); | 1957 HTMLSelectElement* select = toHTMLSelectElement(node); |
| 1957 | 1958 |
| 1958 RenderObject* renderer = select->renderer(); | 1959 RenderObject* renderer = select->renderer(); |
| 1959 if (!renderer->isMenuList()) | 1960 if (!renderer->isMenuList()) |
| 1960 return false; | 1961 return false; |
| 1961 | 1962 |
| 1962 RenderMenuList* menuList = toRenderMenuList(renderer); | 1963 RenderMenuList* menuList = toRenderMenuList(renderer); |
| 1963 return menuList->popupIsVisible(); | 1964 return menuList->popupIsVisible(); |
| 1964 } | 1965 } |
| 1965 | 1966 |
| 1967 bool Internals::loseSharedGraphicsContext3D() |
| 1968 { |
| 1969 RefPtr<GraphicsContext3D> sharedContext = SharedGraphicsContext3D::get(); |
| 1970 if (!sharedContext) |
| 1971 return false; |
| 1972 sharedContext->getExtensions()->loseContextCHROMIUM(Extensions3D::GUILTY_CON
TEXT_RESET_ARB, Extensions3D::INNOCENT_CONTEXT_RESET_ARB); |
| 1973 // To prevent tests that call loseSharedGraphicsContext3D from being |
| 1974 // flaky, we call finish so that the context is guaranteed to be lost |
| 1975 // synchronously (i.e. before returning). |
| 1976 sharedContext->finish(); |
| 1977 return true; |
| 1966 } | 1978 } |
| 1979 |
| 1980 } |
| OLD | NEW |