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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 648913002: Clean up vestiges of ScrollView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 } 802 }
803 803
804 void Internals::setMarkedTextMatchesAreHighlighted(Document* document, bool high light) 804 void Internals::setMarkedTextMatchesAreHighlighted(Document* document, bool high light)
805 { 805 {
806 if (!document || !document->frame()) 806 if (!document || !document->frame())
807 return; 807 return;
808 808
809 document->frame()->editor().setMarkedTextMatchesAreHighlighted(highlight); 809 document->frame()->editor().setMarkedTextMatchesAreHighlighted(highlight);
810 } 810 }
811 811
812 void Internals::setScrollViewPosition(Document* document, long x, long y, Except ionState& exceptionState) 812 void Internals::setFrameViewPosition(Document* document, long x, long y, Excepti onState& exceptionState)
813 { 813 {
814 ASSERT(document); 814 ASSERT(document);
815 if (!document->view()) { 815 if (!document->view()) {
816 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid."); 816 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid.");
817 return; 817 return;
818 } 818 }
819 819
820 FrameView* frameView = document->view(); 820 FrameView* frameView = document->view();
821 bool constrainsScrollingToContentEdgeOldValue = frameView->constrainsScrolli ngToContentEdge(); 821 bool constrainsScrollingToContentEdgeOldValue = frameView->constrainsScrolli ngToContentEdge();
822 bool scrollbarsSuppressedOldValue = frameView->scrollbarsSuppressed(); 822 bool scrollbarsSuppressedOldValue = frameView->scrollbarsSuppressed();
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2275 } 2275 }
2276 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr eate(element->document(), options)); 2276 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr eate(element->document(), options));
2277 } 2277 }
2278 2278
2279 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState) 2279 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState)
2280 { 2280 {
2281 return new InternalsIterator; 2281 return new InternalsIterator;
2282 } 2282 }
2283 2283
2284 } // namespace blink 2284 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698