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

Unified Diff: third_party/WebKit/Source/platform/Widget.h

Issue 1996363003: Avoid calling updateAllLifecyclePhasesExceptPaint in SVGImage if not needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/Widget.h
diff --git a/third_party/WebKit/Source/platform/Widget.h b/third_party/WebKit/Source/platform/Widget.h
index 06e035f025d7f2823f426449f200bab0dd8b543c..cf5d879a50f558f8ff536ec262774809fbf4578c 100644
--- a/third_party/WebKit/Source/platform/Widget.h
+++ b/third_party/WebKit/Source/platform/Widget.h
@@ -63,8 +63,9 @@ public:
const IntRect& frameRect() const { return m_frame; }
IntRect boundsRect() const { return IntRect(0, 0, width(), height()); }
- void resize(int w, int h) { setFrameRect(IntRect(x(), y(), w, h)); }
- void resize(const IntSize& s) { setFrameRect(IntRect(location(), s)); }
+ // These return false if the resize was a no-op.
+ bool resize(int w, int h);
+ bool resize(const IntSize&);
virtual void paint(GraphicsContext&, const CullRect&) const { }
void invalidate() { invalidateRect(boundsRect()); }

Powered by Google App Engine
This is Rietveld 408576698