OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |