WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
11483
Fixing rendering on the Qt platform
https://bugs.webkit.org/show_bug.cgi?id=11483
Summary
Fixing rendering on the Qt platform
Zack Rusin
Reported
2006-11-01 05:48:50 PST
I never got to finish GraphicsContext port. The biggest issue was that I didn't want to be updating pen and brush on every operation, which was basically forced by the api. Since GraphicsContext behaves more less exactly like QPainter I'd like to keep both in sync with each other. The patch adds setPlatformPen, setPlatformFillColor and setPlatformFont methods to GraphicsContext. On all platforms but Qt they're empty stubs but on the Qt platform they allow us to keep our painter in sync with the state of GraphicsContext without forcing the (usually expensive) state changes on every rendering operation. This fixes color and font handling for all rendering (meaning the pages should now actually look correctly).
Attachments
Fixes color/font handling on the Qt platform
(10.11 KB, patch)
2006-11-01 05:49 PST
,
Zack Rusin
hyatt
: review+
Details
Formatted Diff
Diff
cleaned up the patch
(9.65 KB, patch)
2006-11-02 07:33 PST
,
Zack Rusin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zack Rusin
Comment 1
2006-11-01 05:49:35 PST
Created
attachment 11324
[details]
Fixes color/font handling on the Qt platform
Maciej Stachowiak
Comment 2
2006-11-01 18:55:05 PST
I asked Darin to look at this.
Dave Hyatt
Comment 3
2006-11-02 00:54:46 PST
It's ok to put #if PLATFORM(QT) in the header around those setPlatformXXX functions. That way you don't have to change GraphicsContext.cpp.
Dave Hyatt
Comment 4
2006-11-02 00:55:56 PST
Oh i guess you still have to make the calls. Never mind.
Dave Hyatt
Comment 5
2006-11-02 00:57:47 PST
Comment on
attachment 11324
[details]
Fixes color/font handling on the Qt platform Drop the extra space before the closing paren on these three methods in GraphicsContext.cpp: +void GraphicsContext::setPlatformPen(const Pen& ) + void GraphicsContext::setPlatformFillColor(const Color& ) +void GraphicsContext::setPlatformFont(const Font& ) r=me
Zack Rusin
Comment 6
2006-11-02 07:33:09 PST
Created
attachment 11346
[details]
cleaned up the patch
Maciej Stachowiak
Comment 7
2006-11-03 02:44:06 PST
landed
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug