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

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

Issue 842113005: Delete a bunch of noop paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix comment Created 5 years, 11 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
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | sky/engine/web/WebViewImpl.h » ('j') | 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 return frame; 633 return frame;
634 } 634 }
635 635
636 void WebLocalFrameImpl::createFrameView() 636 void WebLocalFrameImpl::createFrameView()
637 { 637 {
638 TRACE_EVENT0("blink", "WebLocalFrameImpl::createFrameView"); 638 TRACE_EVENT0("blink", "WebLocalFrameImpl::createFrameView");
639 639
640 ASSERT(frame()); // If frame() doesn't exist, we probably didn't init proper ly. 640 ASSERT(frame()); // If frame() doesn't exist, we probably didn't init proper ly.
641 641
642 WebViewImpl* webView = viewImpl(); 642 WebViewImpl* webView = viewImpl();
643 webView->suppressInvalidations(true);
644
645 frame()->createView(webView->size(), webView->baseBackgroundColor(), webView ->isTransparent()); 643 frame()->createView(webView->size(), webView->baseBackgroundColor(), webView ->isTransparent());
646 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffsetForE mulation, m_inputEventsScaleFactorForEmulation); 644 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffsetForE mulation, m_inputEventsScaleFactorForEmulation);
647
648 webView->suppressInvalidations(false);
649 } 645 }
650 646
651 WebLocalFrameImpl* WebLocalFrameImpl::fromFrame(LocalFrame* frame) 647 WebLocalFrameImpl* WebLocalFrameImpl::fromFrame(LocalFrame* frame)
652 { 648 {
653 if (!frame) 649 if (!frame)
654 return 0; 650 return 0;
655 return fromFrame(*frame); 651 return fromFrame(*frame);
656 } 652 }
657 653
658 WebLocalFrameImpl* WebLocalFrameImpl::fromFrame(LocalFrame& frame) 654 WebLocalFrameImpl* WebLocalFrameImpl::fromFrame(LocalFrame& frame)
(...skipping 19 matching lines...) Expand all
678 } 674 }
679 675
680 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse t, float contentScaleFactor) 676 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse t, float contentScaleFactor)
681 { 677 {
682 m_inputEventsOffsetForEmulation = offset; 678 m_inputEventsOffsetForEmulation = offset;
683 m_inputEventsScaleFactorForEmulation = contentScaleFactor; 679 m_inputEventsScaleFactorForEmulation = contentScaleFactor;
684 if (frame()->view()) 680 if (frame()->view())
685 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset ForEmulation, m_inputEventsScaleFactorForEmulation); 681 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset ForEmulation, m_inputEventsScaleFactorForEmulation);
686 } 682 }
687 683
688 void WebLocalFrameImpl::invalidateAll() const
689 {
690 ASSERT(frame() && frame()->view());
691 FrameView* view = frame()->view();
692 view->invalidateRect(view->frameRect());
693 }
694
695 } // namespace blink 684 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | sky/engine/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698