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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 void WebFrameWidgetImpl::setBaseBackgroundColor(WebColor color) | 400 void WebFrameWidgetImpl::setBaseBackgroundColor(WebColor color) |
401 { | 401 { |
402 if (m_baseBackgroundColor == color) | 402 if (m_baseBackgroundColor == color) |
403 return; | 403 return; |
404 | 404 |
405 m_baseBackgroundColor = color; | 405 m_baseBackgroundColor = color; |
406 | 406 |
407 m_localRoot->frameView()->setBaseBackgroundColor(color); | 407 m_localRoot->frameView()->setBaseBackgroundColor(color); |
408 } | 408 } |
409 | 409 |
| 410 HitTestResult WebFrameWidgetImpl::coreHitTestResultAt(const WebPoint& pointInVie
wport) |
| 411 { |
| 412 DocumentLifecycle::AllowThrottlingScope throttlingScope(m_localRoot->frame()
->document()->lifecycle()); |
| 413 FrameView* view = m_localRoot->frameView(); |
| 414 IntPoint pointInRootFrame = view->contentsToFrame(view->viewportToContents(p
ointInViewport)); |
| 415 return hitTestResultForRootFramePos(pointInRootFrame); |
| 416 } |
| 417 |
410 void WebFrameWidgetImpl::scheduleAnimation() | 418 void WebFrameWidgetImpl::scheduleAnimation() |
411 { | 419 { |
412 if (m_layerTreeView) { | 420 if (m_layerTreeView) { |
413 m_layerTreeView->setNeedsBeginFrame(); | 421 m_layerTreeView->setNeedsBeginFrame(); |
414 return; | 422 return; |
415 } | 423 } |
416 if (m_client) | 424 if (m_client) |
417 m_client->scheduleAnimation(); | 425 m_client->scheduleAnimation(); |
418 } | 426 } |
419 | 427 |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 } | 1465 } |
1458 | 1466 |
1459 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const | 1467 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const |
1460 { | 1468 { |
1461 if (!m_imeAcceptEvents) | 1469 if (!m_imeAcceptEvents) |
1462 return nullptr; | 1470 return nullptr; |
1463 return focusedLocalFrameInWidget(); | 1471 return focusedLocalFrameInWidget(); |
1464 } | 1472 } |
1465 | 1473 |
1466 } // namespace blink | 1474 } // namespace blink |
OLD | NEW |