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

Unified Diff: third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.cpp

Issue 17339: Fix for the painting problem with drop down scroll bar (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/WebCore/platform/chromium/FramelessScrollView.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.cpp (revision 7808)
+++ third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.cpp (working copy)
@@ -85,6 +85,9 @@
// ScrollView
virtual HostWindow* hostWindow() const;
+ // Widget
+ virtual void invalidateRect(const IntRect&);
+
// PopupListBox methods
// Show the popup
@@ -654,6 +657,15 @@
return parent() ? parent()->hostWindow() : 0;
}
+void PopupListBox::invalidateRect(const IntRect& rect)
+{
+ // Since we are returning the HostWindow of our parent as our own in
+ // hostWindow(), we need to invalidate in our parent coordinates.
+ IntRect newRect(rect);
+ newRect.move(kBorderSize, kBorderSize);
+ FramelessScrollView::invalidateRect(newRect);
+}
+
// From HTMLSelectElement.cpp
static String stripLeadingWhiteSpace(const String& string)
{
« no previous file with comments | « third_party/WebKit/WebCore/platform/chromium/FramelessScrollView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698