OLD | NEW |
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 alignment = (align == AlignCursorOnScrollAlways) ? ScrollAlignment::
alignCenterAlways : ScrollAlignment::alignCenterIfNeeded; | 291 alignment = (align == AlignCursorOnScrollAlways) ? ScrollAlignment::
alignCenterAlways : ScrollAlignment::alignCenterIfNeeded; |
292 else | 292 else |
293 alignment = (align == AlignCursorOnScrollAlways) ? ScrollAlignment::
alignTopAlways : ScrollAlignment::alignToEdgeIfNeeded; | 293 alignment = (align == AlignCursorOnScrollAlways) ? ScrollAlignment::
alignTopAlways : ScrollAlignment::alignToEdgeIfNeeded; |
294 | 294 |
295 revealSelection(alignment, RevealExtent); | 295 revealSelection(alignment, RevealExtent); |
296 } | 296 } |
297 | 297 |
298 notifyAccessibilityForSelectionChange(); | 298 notifyAccessibilityForSelectionChange(); |
299 notifyCompositorForSelectionChange(); | 299 notifyCompositorForSelectionChange(); |
300 notifyEventHandlerForSelectionChange(); | 300 notifyEventHandlerForSelectionChange(); |
301 m_frame->domWindow()->enqueueDocumentEvent(Event::create(EventTypeNames::sel
ectionchange)); | 301 m_frame->localDOMWindow()->enqueueDocumentEvent(Event::create(EventTypeNames
::selectionchange)); |
302 } | 302 } |
303 | 303 |
304 static bool removingNodeRemovesPosition(Node& node, const Position& position) | 304 static bool removingNodeRemovesPosition(Node& node, const Position& position) |
305 { | 305 { |
306 if (!position.anchorNode()) | 306 if (!position.anchorNode()) |
307 return false; | 307 return false; |
308 | 308 |
309 if (position.anchorNode() == node) | 309 if (position.anchorNode() == node) |
310 return true; | 310 return true; |
311 | 311 |
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1939 sel.showTreeForThis(); | 1939 sel.showTreeForThis(); |
1940 } | 1940 } |
1941 | 1941 |
1942 void showTree(const blink::FrameSelection* sel) | 1942 void showTree(const blink::FrameSelection* sel) |
1943 { | 1943 { |
1944 if (sel) | 1944 if (sel) |
1945 sel->showTreeForThis(); | 1945 sel->showTreeForThis(); |
1946 } | 1946 } |
1947 | 1947 |
1948 #endif | 1948 #endif |
OLD | NEW |