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

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

Issue 495763005: Switch to using accessibilityEnabled and inlineTextBoxAccessibilityEnabled from settings (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 | « Source/core/dom/Node.cpp ('k') | Source/core/rendering/RenderBlockFlow.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) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 } 541 }
542 542
543 void Editor::notifyComponentsOnChangedSelection(const VisibleSelection& oldSelec tion, FrameSelection::SetSelectionOptions options) 543 void Editor::notifyComponentsOnChangedSelection(const VisibleSelection& oldSelec tion, FrameSelection::SetSelectionOptions options)
544 { 544 {
545 client().respondToChangedSelection(&m_frame, m_frame.selection().selectionTy pe()); 545 client().respondToChangedSelection(&m_frame, m_frame.selection().selectionTy pe());
546 setStartNewKillRingSequence(true); 546 setStartNewKillRingSequence(true);
547 } 547 }
548 548
549 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) 549 void Editor::respondToChangedContents(const VisibleSelection& endingSelection)
550 { 550 {
551 if (AXObjectCache::accessibilityEnabled()) { 551 if (m_frame.settings() && m_frame.settings()->accessibilityEnabled()) {
552 Node* node = endingSelection.start().deprecatedNode(); 552 Node* node = endingSelection.start().deprecatedNode();
553 if (AXObjectCache* cache = m_frame.document()->existingAXObjectCache()) 553 if (AXObjectCache* cache = m_frame.document()->existingAXObjectCache())
554 cache->postNotification(node, AXObjectCache::AXValueChanged, false); 554 cache->postNotification(node, AXObjectCache::AXValueChanged, false);
555 } 555 }
556 556
557 spellChecker().updateMarkersForWordsAffectedByEditing(true); 557 spellChecker().updateMarkersForWordsAffectedByEditing(true);
558 client().respondToChangedContents(); 558 client().respondToChangedContents();
559 } 559 }
560 560
561 void Editor::removeFormattingAndStyle() 561 void Editor::removeFormattingAndStyle()
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 frame().selection().setShouldShowBlockCursor(m_overwriteModeEnabled); 1278 frame().selection().setShouldShowBlockCursor(m_overwriteModeEnabled);
1279 } 1279 }
1280 1280
1281 void Editor::trace(Visitor* visitor) 1281 void Editor::trace(Visitor* visitor)
1282 { 1282 {
1283 visitor->trace(m_lastEditCommand); 1283 visitor->trace(m_lastEditCommand);
1284 visitor->trace(m_mark); 1284 visitor->trace(m_mark);
1285 } 1285 }
1286 1286
1287 } // namespace blink 1287 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/rendering/RenderBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698