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

Side by Side Diff: sky/engine/core/page/Chrome.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/core/page/Chrome.h ('k') | sky/engine/core/page/ChromeClient.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) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 Chrome::~Chrome() 45 Chrome::~Chrome()
46 { 46 {
47 } 47 }
48 48
49 PassOwnPtr<Chrome> Chrome::create(Page* page, ChromeClient* client) 49 PassOwnPtr<Chrome> Chrome::create(Page* page, ChromeClient* client)
50 { 50 {
51 return adoptPtr(new Chrome(page, client)); 51 return adoptPtr(new Chrome(page, client));
52 } 52 }
53 53
54 void Chrome::invalidateContentsAndRootView(const IntRect& updateRect)
55 {
56 m_client->invalidateContentsAndRootView(updateRect);
57 }
58
59 void Chrome::invalidateContentsForSlowScroll(const IntRect& updateRect)
60 {
61 m_client->invalidateContentsForSlowScroll(updateRect);
62 }
63
64 IntRect Chrome::rootViewToScreen(const IntRect& rect) const 54 IntRect Chrome::rootViewToScreen(const IntRect& rect) const
65 { 55 {
66 return m_client->rootViewToScreen(rect); 56 return m_client->rootViewToScreen(rect);
67 } 57 }
68 58
69 blink::WebScreenInfo Chrome::screenInfo() const 59 blink::WebScreenInfo Chrome::screenInfo() const
70 { 60 {
71 return m_client->screenInfo(); 61 return m_client->screenInfo();
72 } 62 }
73 63
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 m_page->animator().setAnimationFramePending(); 130 m_page->animator().setAnimationFramePending();
141 m_client->scheduleAnimation(); 131 m_client->scheduleAnimation();
142 } 132 }
143 133
144 void Chrome::willBeDestroyed() 134 void Chrome::willBeDestroyed()
145 { 135 {
146 m_client->chromeDestroyed(); 136 m_client->chromeDestroyed();
147 } 137 }
148 138
149 } // namespace blink 139 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/page/Chrome.h ('k') | sky/engine/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698