| 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)
|
| {
|
|
|