[Webkit-unassigned] [Bug 29362] Qt build error in GraphicsContextQt.cpp (qt 4.4.0)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 28 20:55:49 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29362





--- Comment #12 from Fumitoshi Ukai <ukai at chromium.org>  2009-09-28 20:55:49 PDT ---
(In reply to comment #11)
> Clearly it's already correctly calling "QRect IntRect::operator()" correctly,
> no?
> http://trac.webkit.org/browser/trunk/WebCore/platform/graphics/IntRect.h#L145
> 
> I'm confused as to why we need to be explicit about calling QColor() here for
> C++ to understand this.

Here, fillRect wants a QBrush and we passes a WebCore::Color. So compiler needs
to find QColor to convert from WebCore::Color to QBrush, which is different
situation from IntRect to QRect (no intermediate class needed).
(In Qt 4.5, fillRect takes a QColor, so it works fine?)
I'm not sure, but this is the explanation?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list