Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: sky/engine/web/WebLocalFrameImpl.cpp

Issue 925903005: Remove unnecessary operator overload on RenderLayer::hitTest. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 489
490 void WebLocalFrameImpl::setCaretVisible(bool visible) 490 void WebLocalFrameImpl::setCaretVisible(bool visible)
491 { 491 {
492 frame()->selection().setCaretVisible(visible); 492 frame()->selection().setCaretVisible(visible);
493 } 493 }
494 494
495 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint& point) 495 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint& point)
496 { 496 {
497 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping; 497 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping;
498 HitTestResult result(frame()->view()->windowToContents(roundedIntPoint(Float Point(point)))); 498 HitTestResult result(frame()->view()->windowToContents(roundedIntPoint(Float Point(point))));
499 frame()->document()->renderView()->layer()->hitTest(request, result); 499 frame()->document()->renderView()->layer()->hitTest(request, result.hitTestL ocation(), result);
500 500
501 if (Node* node = result.targetNode()) 501 if (Node* node = result.targetNode())
502 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node); 502 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node);
503 return VisiblePosition(); 503 return VisiblePosition();
504 } 504 }
505 505
506 WebString WebLocalFrameImpl::contentAsText(size_t maxChars) const 506 WebString WebLocalFrameImpl::contentAsText(size_t maxChars) const
507 { 507 {
508 if (!frame()) 508 if (!frame())
509 return WebString(); 509 return WebString();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 610
611 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse t, float contentScaleFactor) 611 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse t, float contentScaleFactor)
612 { 612 {
613 m_inputEventsOffsetForEmulation = offset; 613 m_inputEventsOffsetForEmulation = offset;
614 m_inputEventsScaleFactorForEmulation = contentScaleFactor; 614 m_inputEventsScaleFactorForEmulation = contentScaleFactor;
615 if (frame()->view()) 615 if (frame()->view())
616 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset ForEmulation, m_inputEventsScaleFactorForEmulation); 616 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset ForEmulation, m_inputEventsScaleFactorForEmulation);
617 } 617 }
618 618
619 } // namespace blink 619 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698