Reviewed by Oliver.
No regression test possible.
* platform/win/PopupMenuWin.cpp:
(WebCore::PopupMenu::invalidateItem):
(WebCore::PopupMenu::valueChanged):
(WebCore::PopupWndProc):
* platform/win/ScrollViewWin.cpp:
(WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
* platform/win/UniscribeController.cpp:
(WebCore::UniscribeController::shapeAndPlaceItem):
* platform/win/WidgetWin.cpp:
(WebCore::Widget::invalidateRect):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23901
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2007-06-30 Adam Roben <aroben@apple.com>
+ Don't take the address of temporary values to appease MSVC /W4
+
+ Reviewed by Oliver.
+
+ No regression test possible.
+
+ * platform/win/PopupMenuWin.cpp:
+ (WebCore::PopupMenu::invalidateItem):
+ (WebCore::PopupMenu::valueChanged):
+ (WebCore::PopupWndProc):
+ * platform/win/ScrollViewWin.cpp:
+ (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
+ * platform/win/UniscribeController.cpp:
+ (WebCore::UniscribeController::shapeAndPlaceItem):
+ * platform/win/WidgetWin.cpp:
+ (WebCore::Widget::invalidateRect):
+
+2007-06-29 Adam Roben <aroben@apple.com>
+
Make an int -> UINT conversion explicit that MSVC /W4 complains about
Reviewed by John and Oliver.
if (m_scrollBar)
damageRect.setWidth(damageRect.width() - m_scrollBar->frameGeometry().width());
- ::InvalidateRect(m_popup, &RECT(damageRect), TRUE);
+ RECT r = damageRect;
+ ::InvalidateRect(m_popup, &r, TRUE);
}
IntRect PopupMenu::clientRect() const
IntRect listRect = clientRect();
if (m_scrollBar)
listRect.setWidth(listRect.width() - m_scrollBar->frameGeometry().width());
- ::ScrollWindowEx(m_popup, 0, scrolledLines * m_itemHeight, &RECT(listRect), 0, 0, 0, flags);
- if (m_scrollBar)
- ::InvalidateRect(m_popup, &RECT(m_scrollBar->frameGeometry()), TRUE);
+ RECT r = listRect;
+ ::ScrollWindowEx(m_popup, 0, scrolledLines * m_itemHeight, &r, 0, 0, 0, flags);
+ if (m_scrollBar) {
+ r = m_scrollBar->frameGeometry();
+ ::InvalidateRect(m_popup, &r, TRUE);
+ }
::UpdateWindow(m_popup);
}
PlatformMouseEvent event(hWnd, message, wParam, MAKELPARAM(mousePoint.x(), mousePoint.y()));
popup->scrollBar()->handleMouseReleaseEvent(event);
// FIXME: This is a hack to work around PlatformScrollbar not invalidating correctly when it doesn't have a parent widget
- ::InvalidateRect(popup->popupHandle(), &RECT(scrollBarRect), TRUE);
+ RECT r = scrollBarRect;
+ ::InvalidateRect(popup->popupHandle(), &r, TRUE);
break;
}
}
IntRect scrollViewRect = m_view->convertToContainingWindow(IntRect(0, 0, m_view->visibleWidth(), m_view->visibleHeight()));
IntRect updateRect = clipRect;
updateRect.intersect(scrollViewRect);
- ::InvalidateRect(containingWindowHandle, &RECT(updateRect), false);
+ RECT r = updateRect;
+ ::InvalidateRect(containingWindowHandle, &r, false);
if (!m_hasStaticBackground) // The main frame can just blit the WebView window
// FIXME: Find a way to blit subframes without blitting overlapping content
// FIXME: We need to take the GOFFSETS for combining glyphs and store them in the glyph buffer
// as well, so that when the time comes to draw those glyphs, we can apply the appropriate
// translation.
- if (glyphBuffer)
- glyphBuffer->add(glyph, fontData, advance, &FloatSize(offsetX, offsetY));
+ if (glyphBuffer) {
+ FloatSize size(offsetX, offsetY);
+ glyphBuffer->add(glyph, fontData, advance, &size);
+ }
// Mutate the glyph array to contain our altered advances.
if (m_computingOffsetPosition)
return;
if (!parent()) {
- ::InvalidateRect(containingWindow(), &RECT(r), false);
+ RECT rect = r;
+ ::InvalidateRect(containingWindow(), &rect, false);
if (isFrameView())
static_cast<FrameView*>(this)->addToDirtyRegion(r);
return;
IntRect clipRect = windowClipRect();
windowRect.intersect(clipRect);
- ::InvalidateRect(containingWindow(), &RECT(windowRect), false);
+ RECT rect = windowRect;
+ ::InvalidateRect(containingWindow(), &rect, false);
outermostView->addToDirtyRegion(windowRect);
}