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

Side by Side Diff: Source/web/TextFinder.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/SpellCheckerClientImpl.cpp ('k') | Source/web/WebFrameWidgetImpl.cpp » ('j') | 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 ownerFrame().frame()->selection().clear(); 617 ownerFrame().frame()->selection().clear();
618 618
619 // Make sure no node is focused. See http://crbug.com/38700. 619 // Make sure no node is focused. See http://crbug.com/38700.
620 ownerFrame().frame()->document()->setFocusedElement(nullptr); 620 ownerFrame().frame()->document()->setFocusedElement(nullptr);
621 } 621 }
622 622
623 IntRect activeMatchRect; 623 IntRect activeMatchRect;
624 IntRect activeMatchBoundingBox = enclosingIntRect(LayoutObject::absoluteBoun dingBoxRectForRange(m_activeMatch.get())); 624 IntRect activeMatchBoundingBox = enclosingIntRect(LayoutObject::absoluteBoun dingBoxRectForRange(m_activeMatch.get()));
625 625
626 if (!activeMatchBoundingBox.isEmpty()) { 626 if (!activeMatchBoundingBox.isEmpty()) {
627 if (m_activeMatch->firstNode() && m_activeMatch->firstNode()->renderer() ) { 627 if (m_activeMatch->firstNode() && m_activeMatch->firstNode()->layoutObje ct()) {
628 m_activeMatch->firstNode()->renderer()->scrollRectToVisible( 628 m_activeMatch->firstNode()->layoutObject()->scrollRectToVisible(
629 LayoutRect(activeMatchBoundingBox), ScrollAlignment::alignCenter IfNeeded, ScrollAlignment::alignCenterIfNeeded); 629 LayoutRect(activeMatchBoundingBox), ScrollAlignment::alignCenter IfNeeded, ScrollAlignment::alignCenterIfNeeded);
630 } 630 }
631 631
632 // Zoom to the active match. 632 // Zoom to the active match.
633 activeMatchRect = ownerFrame().frameView()->contentsToWindow(activeMatch BoundingBox); 633 activeMatchRect = ownerFrame().frameView()->contentsToWindow(activeMatch BoundingBox);
634 ownerFrame().viewImpl()->zoomToFindInPageRect(activeMatchRect); 634 ownerFrame().viewImpl()->zoomToFindInPageRect(activeMatchRect);
635 } 635 }
636 636
637 if (selectionRect) 637 if (selectionRect)
638 *selectionRect = activeMatchRect; 638 *selectionRect = activeMatchRect;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 { 790 {
791 visitor->trace(m_ownerFrame); 791 visitor->trace(m_ownerFrame);
792 visitor->trace(m_currentActiveMatchFrame); 792 visitor->trace(m_currentActiveMatchFrame);
793 visitor->trace(m_activeMatch); 793 visitor->trace(m_activeMatch);
794 visitor->trace(m_resumeScopingFromRange); 794 visitor->trace(m_resumeScopingFromRange);
795 visitor->trace(m_deferredScopingWork); 795 visitor->trace(m_deferredScopingWork);
796 visitor->trace(m_findMatchesCache); 796 visitor->trace(m_findMatchesCache);
797 } 797 }
798 798
799 } // namespace blink 799 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/SpellCheckerClientImpl.cpp ('k') | Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698