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

Side by Side Diff: Source/core/editing/FrameSelection.cpp

Issue 454643002: Route selection bounds updates through WebLayerTreeView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 3 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 | « no previous file | Source/core/editing/RenderedPosition.h » ('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) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2008, 2009, 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 void FrameSelection::notifyAccessibilityForSelectionChange() 1440 void FrameSelection::notifyAccessibilityForSelectionChange()
1441 { 1441 {
1442 if (m_selection.start().isNotNull() && m_selection.end().isNotNull()) { 1442 if (m_selection.start().isNotNull() && m_selection.end().isNotNull()) {
1443 if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache()) 1443 if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache())
1444 cache->selectionChanged(m_selection.start().containerNode()); 1444 cache->selectionChanged(m_selection.start().containerNode());
1445 } 1445 }
1446 } 1446 }
1447 1447
1448 void FrameSelection::notifyCompositorForSelectionChange() 1448 void FrameSelection::notifyCompositorForSelectionChange()
1449 { 1449 {
1450 if (!RuntimeEnabledFeatures::compositedSelectionUpdatesEnabled()) 1450 if (!RuntimeEnabledFeatures::compositedSelectionUpdateEnabled())
1451 return; 1451 return;
1452 1452
1453 scheduleVisualUpdate(); 1453 scheduleVisualUpdate();
1454 } 1454 }
1455 1455
1456 void FrameSelection::notifyEventHandlerForSelectionChange() 1456 void FrameSelection::notifyEventHandlerForSelectionChange()
1457 { 1457 {
1458 m_frame->eventHandler().notifySelectionChanged(); 1458 m_frame->eventHandler().notifySelectionChanged();
1459 } 1459 }
1460 1460
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 sel.showTreeForThis(); 1932 sel.showTreeForThis();
1933 } 1933 }
1934 1934
1935 void showTree(const blink::FrameSelection* sel) 1935 void showTree(const blink::FrameSelection* sel)
1936 { 1936 {
1937 if (sel) 1937 if (sel)
1938 sel->showTreeForThis(); 1938 sel->showTreeForThis();
1939 } 1939 }
1940 1940
1941 #endif 1941 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/RenderedPosition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698