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

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

Issue 570763003: Remove unneeded bool from RenderView::selectionBounds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined (again and again) Created 6 years, 3 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/core/rendering/RenderView.cpp ('k') | no next file » | 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 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 ASSERT(m_printContext); 1496 ASSERT(m_printContext);
1497 1497
1498 GraphicsContext graphicsContext(canvas); 1498 GraphicsContext graphicsContext(canvas);
1499 graphicsContext.setPrinting(true); 1499 graphicsContext.setPrinting(true);
1500 1500
1501 m_printContext->spoolAllPagesWithBoundaries(graphicsContext, FloatSize(pageS izeInPixels.width, pageSizeInPixels.height)); 1501 m_printContext->spoolAllPagesWithBoundaries(graphicsContext, FloatSize(pageS izeInPixels.width, pageSizeInPixels.height));
1502 } 1502 }
1503 1503
1504 WebRect WebLocalFrameImpl::selectionBoundsRect() const 1504 WebRect WebLocalFrameImpl::selectionBoundsRect() const
1505 { 1505 {
1506 return hasSelection() ? WebRect(IntRect(frame()->selection().bounds(false))) : WebRect(); 1506 return hasSelection() ? WebRect(IntRect(frame()->selection().bounds())) : We bRect();
1507 } 1507 }
1508 1508
1509 bool WebLocalFrameImpl::selectionStartHasSpellingMarkerFor(int from, int length) const 1509 bool WebLocalFrameImpl::selectionStartHasSpellingMarkerFor(int from, int length) const
1510 { 1510 {
1511 if (!frame()) 1511 if (!frame())
1512 return false; 1512 return false;
1513 return frame()->spellChecker().selectionStartHasSpellingMarkerFor(from, leng th); 1513 return frame()->spellChecker().selectionStartHasSpellingMarkerFor(from, leng th);
1514 } 1514 }
1515 1515
1516 WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const 1516 WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1880 1880
1881 void WebLocalFrameImpl::invalidateAll() const 1881 void WebLocalFrameImpl::invalidateAll() const
1882 { 1882 {
1883 ASSERT(frame() && frame()->view()); 1883 ASSERT(frame() && frame()->view());
1884 FrameView* view = frame()->view(); 1884 FrameView* view = frame()->view();
1885 view->invalidateRect(view->frameRect()); 1885 view->invalidateRect(view->frameRect());
1886 invalidateScrollbar(); 1886 invalidateScrollbar();
1887 } 1887 }
1888 1888
1889 } // namespace blink 1889 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698