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

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

Issue 13818029: Remove TiledBacking / TileCache code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 7 years, 8 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/WebCore/testing/Internals.h ('k') | Source/WebCore/testing/Internals.idl » ('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) 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 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 String Internals::rangeAsText(const Range* range, ExceptionCode& ec) 1177 String Internals::rangeAsText(const Range* range, ExceptionCode& ec)
1178 { 1178 {
1179 if (!range) { 1179 if (!range) {
1180 ec = INVALID_ACCESS_ERR; 1180 ec = INVALID_ACCESS_ERR;
1181 return String(); 1181 return String();
1182 } 1182 }
1183 1183
1184 return range->text(); 1184 return range->text();
1185 } 1185 }
1186 1186
1187 void Internals::setDelegatesScrolling(bool enabled, Document* document, Exceptio nCode& ec)
1188 {
1189 // Delegate scrolling is valid only on mainframe's view.
1190 if (!document || !document->view() || !document->page() || document->page()- >mainFrame() != document->frame()) {
1191 ec = INVALID_ACCESS_ERR;
1192 return;
1193 }
1194
1195 document->view()->setDelegatesScrolling(enabled);
1196 }
1197
1198 #if ENABLE(TOUCH_ADJUSTMENT) 1187 #if ENABLE(TOUCH_ADJUSTMENT)
1199 PassRefPtr<DOMPoint> Internals::touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document* document, ExceptionCode& ec) 1188 PassRefPtr<DOMPoint> Internals::touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document* document, ExceptionCode& ec)
1200 { 1189 {
1201 if (!document || !document->frame()) { 1190 if (!document || !document->frame()) {
1202 ec = INVALID_ACCESS_ERR; 1191 ec = INVALID_ACCESS_ERR;
1203 return 0; 1192 return 0;
1204 } 1193 }
1205 1194
1206 IntSize radius(width / 2, height / 2); 1195 IntSize radius(width / 2, height / 2);
1207 IntPoint point(x + radius.width(), y + radius.height()); 1196 IntPoint point(x + radius.width(), y + radius.height());
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
2047 2036
2048 RenderObject* renderer = select->renderer(); 2037 RenderObject* renderer = select->renderer();
2049 if (!renderer->isMenuList()) 2038 if (!renderer->isMenuList())
2050 return false; 2039 return false;
2051 2040
2052 RenderMenuList* menuList = toRenderMenuList(renderer); 2041 RenderMenuList* menuList = toRenderMenuList(renderer);
2053 return menuList->popupIsVisible(); 2042 return menuList->popupIsVisible();
2054 } 2043 }
2055 2044
2056 } 2045 }
OLDNEW
« no previous file with comments | « Source/WebCore/testing/Internals.h ('k') | Source/WebCore/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698