| 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 WebString WebLocalFrameImpl::renderTreeAsText(RenderAsTextControls toShow) const | 658 WebString WebLocalFrameImpl::renderTreeAsText(RenderAsTextControls toShow) const |
| 659 { | 659 { |
| 660 RenderAsTextBehavior behavior = RenderAsTextBehaviorNormal; | 660 RenderAsTextBehavior behavior = RenderAsTextBehaviorNormal; |
| 661 | 661 |
| 662 if (toShow & RenderAsTextDebug) | 662 if (toShow & RenderAsTextDebug) |
| 663 behavior |= RenderAsTextShowCompositedLayers | RenderAsTextShowAddresses
| RenderAsTextShowIDAndClass | RenderAsTextShowLayerNesting; | 663 behavior |= RenderAsTextShowCompositedLayers | RenderAsTextShowAddresses
| RenderAsTextShowIDAndClass | RenderAsTextShowLayerNesting; |
| 664 | 664 |
| 665 return externalRepresentation(frame(), behavior); | 665 return externalRepresentation(frame(), behavior); |
| 666 } | 666 } |
| 667 | 667 |
| 668 WebString WebLocalFrameImpl::markerTextForListItem(const WebElement& webElement)
const | |
| 669 { | |
| 670 return WebString(); | |
| 671 } | |
| 672 | |
| 673 WebRect WebLocalFrameImpl::selectionBoundsRect() const | |
| 674 { | |
| 675 return hasSelection() ? WebRect(IntRect(frame()->selection().bounds(false)))
: WebRect(); | |
| 676 } | |
| 677 | |
| 678 bool WebLocalFrameImpl::selectionStartHasSpellingMarkerFor(int from, int length)
const | 668 bool WebLocalFrameImpl::selectionStartHasSpellingMarkerFor(int from, int length)
const |
| 679 { | 669 { |
| 680 if (!frame()) | 670 if (!frame()) |
| 681 return false; | 671 return false; |
| 682 return frame()->spellChecker().selectionStartHasSpellingMarkerFor(from, leng
th); | 672 return frame()->spellChecker().selectionStartHasSpellingMarkerFor(from, leng
th); |
| 683 } | 673 } |
| 684 | 674 |
| 685 // WebLocalFrameImpl public ----------------------------------------------------
----- | 675 // WebLocalFrameImpl public ----------------------------------------------------
----- |
| 686 | 676 |
| 687 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client) | 677 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client) |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 } | 764 } |
| 775 | 765 |
| 776 void WebLocalFrameImpl::invalidateAll() const | 766 void WebLocalFrameImpl::invalidateAll() const |
| 777 { | 767 { |
| 778 ASSERT(frame() && frame()->view()); | 768 ASSERT(frame() && frame()->view()); |
| 779 FrameView* view = frame()->view(); | 769 FrameView* view = frame()->view(); |
| 780 view->invalidateRect(view->frameRect()); | 770 view->invalidateRect(view->frameRect()); |
| 781 } | 771 } |
| 782 | 772 |
| 783 } // namespace blink | 773 } // namespace blink |
| OLD | NEW |