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

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

Issue 952273006: Make the constructor of a LayoutRect from an IntRect explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/web/TextFinder.cpp ('k') | Source/web/tests/WebViewTest.cpp » ('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 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 IntRect dirtyRect = rect; 143 IntRect dirtyRect = rect;
144 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(), 144 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(),
145 renderer->borderTop() + renderer->paddingTop()); 145 renderer->borderTop() + renderer->paddingTop());
146 146
147 // For querying Layer::compositingState(). 147 // For querying Layer::compositingState().
148 // This code should be correct. 148 // This code should be correct.
149 DisableCompositingQueryAsserts disabler; 149 DisableCompositingQueryAsserts disabler;
150 // FIXME: We should not allow paint invalidation out of paint invalidation s tate. crbug.com/457415 150 // FIXME: We should not allow paint invalidation out of paint invalidation s tate. crbug.com/457415
151 DisablePaintInvalidationStateAsserts paintInvalidationAssertDisabler; 151 DisablePaintInvalidationStateAsserts paintInvalidationAssertDisabler;
152 renderer->invalidatePaintRectangle(dirtyRect); 152 renderer->invalidatePaintRectangle(LayoutRect(dirtyRect));
153 } 153 }
154 154
155 void WebPluginContainerImpl::setFocus(bool focused, WebFocusType focusType) 155 void WebPluginContainerImpl::setFocus(bool focused, WebFocusType focusType)
156 { 156 {
157 Widget::setFocus(focused, focusType); 157 Widget::setFocus(focused, focusType);
158 m_webPlugin->updateFocus(focused, focusType); 158 m_webPlugin->updateFocus(focused, focusType);
159 } 159 }
160 160
161 void WebPluginContainerImpl::show() 161 void WebPluginContainerImpl::show()
162 { 162 {
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 998
999 return clipRect; 999 return clipRect;
1000 } 1000 }
1001 1001
1002 bool WebPluginContainerImpl::pluginShouldPersist() const 1002 bool WebPluginContainerImpl::pluginShouldPersist() const
1003 { 1003 {
1004 return m_webPlugin->shouldPersist(); 1004 return m_webPlugin->shouldPersist();
1005 } 1005 }
1006 1006
1007 } // namespace blink 1007 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/TextFinder.cpp ('k') | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698