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

Side by Side Diff: Source/web/WebDocument.cpp

Issue 1211003007: Remove scroll offset methods from WebDocument, nothing uses them. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | « no previous file | public/web/WebDocument.h » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 WebElement WebDocument::createElement(const WebString& tagName) 276 WebElement WebDocument::createElement(const WebString& tagName)
277 { 277 {
278 TrackExceptionState exceptionState; 278 TrackExceptionState exceptionState;
279 WebElement element(unwrap<Document>()->createElement(tagName, exceptionState )); 279 WebElement element(unwrap<Document>()->createElement(tagName, exceptionState ));
280 if (exceptionState.hadException()) 280 if (exceptionState.hadException())
281 return WebElement(); 281 return WebElement();
282 return element; 282 return element;
283 } 283 }
284 284
285 WebSize WebDocument::scrollOffset() const
286 {
287 if (FrameView* view = constUnwrap<Document>()->view())
288 return view->scrollOffset();
289 return WebSize();
290 }
291
292 WebSize WebDocument::minimumScrollOffset() const
293 {
294 if (FrameView* view = constUnwrap<Document>()->view())
295 return toIntSize(view->minimumScrollPosition());
296 return WebSize();
297 }
298
299 WebSize WebDocument::maximumScrollOffset() const
300 {
301 if (FrameView* view = constUnwrap<Document>()->view())
302 return toIntSize(view->maximumScrollPosition());
303 return WebSize();
304 }
305
306 WebAXObject WebDocument::accessibilityObject() const 285 WebAXObject WebDocument::accessibilityObject() const
307 { 286 {
308 const Document* document = constUnwrap<Document>(); 287 const Document* document = constUnwrap<Document>();
309 AXObjectCacheImpl* cache = toAXObjectCacheImpl(document->axObjectCache()); 288 AXObjectCacheImpl* cache = toAXObjectCacheImpl(document->axObjectCache());
310 return cache ? WebAXObject(cache->getOrCreate(document->layoutView())) : Web AXObject(); 289 return cache ? WebAXObject(cache->getOrCreate(document->layoutView())) : Web AXObject();
311 } 290 }
312 291
313 WebAXObject WebDocument::accessibilityObjectFromID(int axID) const 292 WebAXObject WebDocument::accessibilityObjectFromID(int axID) const
314 { 293 {
315 const Document* document = constUnwrap<Document>(); 294 const Document* document = constUnwrap<Document>();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 m_private = elem; 365 m_private = elem;
387 return *this; 366 return *this;
388 } 367 }
389 368
390 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const 369 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const
391 { 370 {
392 return toDocument(m_private.get()); 371 return toDocument(m_private.get());
393 } 372 }
394 373
395 } // namespace blink 374 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | public/web/WebDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698