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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 updateLayerTreeDeviceScaleFactor(); | 1009 updateLayerTreeDeviceScaleFactor(); |
1010 updateLayerTreeBackgroundColor(); | 1010 updateLayerTreeBackgroundColor(); |
1011 m_layerTreeView->setHasTransparentBackground(isTransparent()); | 1011 m_layerTreeView->setHasTransparentBackground(isTransparent()); |
1012 updateLayerTreeViewport(); | 1012 updateLayerTreeViewport(); |
1013 m_isAcceleratedCompositingActive = true; | 1013 m_isAcceleratedCompositingActive = true; |
1014 } | 1014 } |
1015 } | 1015 } |
1016 | 1016 |
1017 PaintLayerCompositor* WebFrameWidgetImpl::compositor() const | 1017 PaintLayerCompositor* WebFrameWidgetImpl::compositor() const |
1018 { | 1018 { |
1019 LocalFrame* frame = toLocalFrame(toCoreFrame(m_localRoot)); | 1019 LocalFrame* frame = m_localRoot->frame(); |
1020 if (!frame || !frame->document() || !frame->document()->layoutView()) | 1020 if (!frame || !frame->document() || !frame->document()->layoutView()) |
1021 return nullptr; | 1021 return nullptr; |
1022 | 1022 |
1023 return frame->document()->layoutView()->compositor(); | 1023 return frame->document()->layoutView()->compositor(); |
1024 } | 1024 } |
1025 | 1025 |
1026 void WebFrameWidgetImpl::setRootGraphicsLayer(GraphicsLayer* layer) | 1026 void WebFrameWidgetImpl::setRootGraphicsLayer(GraphicsLayer* layer) |
1027 { | 1027 { |
1028 m_rootGraphicsLayer = layer; | 1028 m_rootGraphicsLayer = layer; |
1029 m_rootLayer = layer ? layer->platformLayer() : nullptr; | 1029 m_rootLayer = layer ? layer->platformLayer() : nullptr; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 | 1069 |
1070 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) | 1070 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) |
1071 { | 1071 { |
1072 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); | 1072 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); |
1073 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); | 1073 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); |
1074 result.setToShadowHostIfInUserAgentShadowRoot(); | 1074 result.setToShadowHostIfInUserAgentShadowRoot(); |
1075 return result; | 1075 return result; |
1076 } | 1076 } |
1077 | 1077 |
1078 } // namespace blink | 1078 } // namespace blink |
OLD | NEW |