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

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

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: whee Created 6 years, 1 month 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
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698