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

Side by Side Diff: Source/web/WebViewImpl.cpp

Issue 306413002: Rename Repaint to Paint Invalidation Part 2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 { 1762 {
1763 ASSERT(isAcceleratedCompositingActive()); 1763 ASSERT(isAcceleratedCompositingActive());
1764 m_layerTreeView->compositeAndReadbackAsync(callback); 1764 m_layerTreeView->compositeAndReadbackAsync(callback);
1765 } 1765 }
1766 1766
1767 bool WebViewImpl::isTrackingRepaints() const 1767 bool WebViewImpl::isTrackingRepaints() const
1768 { 1768 {
1769 if (!page()) 1769 if (!page())
1770 return false; 1770 return false;
1771 FrameView* view = page()->mainFrame()->view(); 1771 FrameView* view = page()->mainFrame()->view();
1772 return view->isTrackingRepaints(); 1772 return view->isTrackingPaintInvalidations();
1773 } 1773 }
1774 1774
1775 void WebViewImpl::themeChanged() 1775 void WebViewImpl::themeChanged()
1776 { 1776 {
1777 if (!page()) 1777 if (!page())
1778 return; 1778 return;
1779 FrameView* view = page()->mainFrame()->view(); 1779 FrameView* view = page()->mainFrame()->view();
1780 1780
1781 WebRect damagedRect(0, 0, m_size.width, m_size.height); 1781 WebRect damagedRect(0, 0, m_size.width, m_size.height);
1782 view->invalidateRect(damagedRect); 1782 view->invalidateRect(damagedRect);
(...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after
4051 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints(); 4051 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints();
4052 4052
4053 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) 4053 if (!mainFrameImpl() || !mainFrameImpl()->frameView())
4054 return false; 4054 return false;
4055 4055
4056 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4056 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4057 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4057 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4058 } 4058 }
4059 4059
4060 } // namespace blink 4060 } // namespace blink
OLDNEW
« Source/platform/scroll/ScrollView.cpp ('K') | « Source/platform/scroll/ScrollView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698