| 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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 return hasSelection() ? WebRect(IntRect(frame()->selection().bounds(false)))
: WebRect(); | 676 return hasSelection() ? WebRect(IntRect(frame()->selection().bounds(false)))
: WebRect(); |
| 677 } | 677 } |
| 678 | 678 |
| 679 bool WebLocalFrameImpl::selectionStartHasSpellingMarkerFor(int from, int length)
const | 679 bool WebLocalFrameImpl::selectionStartHasSpellingMarkerFor(int from, int length)
const |
| 680 { | 680 { |
| 681 if (!frame()) | 681 if (!frame()) |
| 682 return false; | 682 return false; |
| 683 return frame()->spellChecker().selectionStartHasSpellingMarkerFor(from, leng
th); | 683 return frame()->spellChecker().selectionStartHasSpellingMarkerFor(from, leng
th); |
| 684 } | 684 } |
| 685 | 685 |
| 686 WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const | |
| 687 { | |
| 688 if (!frame()) | |
| 689 return WebString(); | |
| 690 | |
| 691 return WebString(frame()->layerTreeAsText(showDebugInfo ? LayerTreeIncludesD
ebugInfo : LayerTreeNormal)); | |
| 692 } | |
| 693 | |
| 694 // WebLocalFrameImpl public ----------------------------------------------------
----- | 686 // WebLocalFrameImpl public ----------------------------------------------------
----- |
| 695 | 687 |
| 696 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client) | 688 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client) |
| 697 { | 689 { |
| 698 return WebLocalFrameImpl::create(client); | 690 return WebLocalFrameImpl::create(client); |
| 699 } | 691 } |
| 700 | 692 |
| 701 WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client) | 693 WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client) |
| 702 { | 694 { |
| 703 return adoptRef(new WebLocalFrameImpl(client)).leakRef(); | 695 return adoptRef(new WebLocalFrameImpl(client)).leakRef(); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 } | 775 } |
| 784 | 776 |
| 785 void WebLocalFrameImpl::invalidateAll() const | 777 void WebLocalFrameImpl::invalidateAll() const |
| 786 { | 778 { |
| 787 ASSERT(frame() && frame()->view()); | 779 ASSERT(frame() && frame()->view()); |
| 788 FrameView* view = frame()->view(); | 780 FrameView* view = frame()->view(); |
| 789 view->invalidateRect(view->frameRect()); | 781 view->invalidateRect(view->frameRect()); |
| 790 } | 782 } |
| 791 | 783 |
| 792 } // namespace blink | 784 } // namespace blink |
| OLD | NEW |