| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 "config.h" | 31 #include "config.h" |
| 32 #include "web/WebFrameWidgetImpl.h" | 32 #include "web/WebFrameWidgetImpl.h" |
| 33 | 33 |
| 34 #include "core/editing/Editor.h" | 34 #include "core/editing/Editor.h" |
| 35 #include "core/editing/FrameSelection.h" | 35 #include "core/editing/FrameSelection.h" |
| 36 #include "core/editing/InputMethodController.h" | 36 #include "core/editing/InputMethodController.h" |
| 37 #include "core/editing/PlainTextRange.h" | 37 #include "core/editing/PlainTextRange.h" |
| 38 #include "core/frame/FrameView.h" | 38 #include "core/frame/FrameView.h" |
| 39 #include "core/frame/RemoteFrame.h" | 39 #include "core/frame/RemoteFrame.h" |
| 40 #include "core/frame/Settings.h" | 40 #include "core/frame/Settings.h" |
| 41 #include "core/layout/compositing/RenderLayerCompositor.h" | 41 #include "core/layout/compositing/LayerCompositor.h" |
| 42 #include "core/page/EventHandler.h" | 42 #include "core/page/EventHandler.h" |
| 43 #include "core/page/FocusController.h" | 43 #include "core/page/FocusController.h" |
| 44 #include "core/page/Page.h" | 44 #include "core/page/Page.h" |
| 45 #include "core/rendering/RenderView.h" | 45 #include "core/rendering/RenderView.h" |
| 46 #include "platform/KeyboardCodes.h" | 46 #include "platform/KeyboardCodes.h" |
| 47 #include "platform/NotImplemented.h" | 47 #include "platform/NotImplemented.h" |
| 48 #include "public/web/WebBeginFrameArgs.h" | 48 #include "public/web/WebBeginFrameArgs.h" |
| 49 #include "public/web/WebWidgetClient.h" | 49 #include "public/web/WebWidgetClient.h" |
| 50 #include "web/WebInputEventConversion.h" | 50 #include "web/WebInputEventConversion.h" |
| 51 #include "web/WebLocalFrameImpl.h" | 51 #include "web/WebLocalFrameImpl.h" |
| (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 updateLayerTreeDeviceScaleFactor(); | 965 updateLayerTreeDeviceScaleFactor(); |
| 966 updateLayerTreeBackgroundColor(); | 966 updateLayerTreeBackgroundColor(); |
| 967 m_layerTreeView->setHasTransparentBackground(isTransparent()); | 967 m_layerTreeView->setHasTransparentBackground(isTransparent()); |
| 968 updateLayerTreeViewport(); | 968 updateLayerTreeViewport(); |
| 969 m_isAcceleratedCompositingActive = true; | 969 m_isAcceleratedCompositingActive = true; |
| 970 } | 970 } |
| 971 if (m_localRoot->frameView()) | 971 if (m_localRoot->frameView()) |
| 972 m_localRoot->frameView()->setClipsRepaints(!m_isAcceleratedCompositingAc
tive); | 972 m_localRoot->frameView()->setClipsRepaints(!m_isAcceleratedCompositingAc
tive); |
| 973 } | 973 } |
| 974 | 974 |
| 975 RenderLayerCompositor* WebFrameWidgetImpl::compositor() const | 975 LayerCompositor* WebFrameWidgetImpl::compositor() const |
| 976 { | 976 { |
| 977 LocalFrame* frame = toLocalFrame(toCoreFrame(m_localRoot)); | 977 LocalFrame* frame = toLocalFrame(toCoreFrame(m_localRoot)); |
| 978 if (!frame || !frame->document() || !frame->document()->renderView()) | 978 if (!frame || !frame->document() || !frame->document()->renderView()) |
| 979 return nullptr; | 979 return nullptr; |
| 980 | 980 |
| 981 return frame->document()->renderView()->compositor(); | 981 return frame->document()->renderView()->compositor(); |
| 982 } | 982 } |
| 983 | 983 |
| 984 void WebFrameWidgetImpl::suppressInvalidations(bool enable) | 984 void WebFrameWidgetImpl::suppressInvalidations(bool enable) |
| 985 { | 985 { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1008 } else { | 1008 } else { |
| 1009 m_layerTreeView->clearRootLayer(); | 1009 m_layerTreeView->clearRootLayer(); |
| 1010 m_layerTreeView->clearViewportLayers(); | 1010 m_layerTreeView->clearViewportLayers(); |
| 1011 } | 1011 } |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 suppressInvalidations(false); | 1014 suppressInvalidations(false); |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 } // namespace blink | 1017 } // namespace blink |
| OLD | NEW |