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

Side by Side Diff: sky/engine/web/WebLocalFrameImpl.cpp

Issue 758843004: Delete most of rendering/compositing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698