Summary: | -[WebTextRenderer _ATSU_drawRun:...] does not check view flippedness | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | mitz | ||||||||||
Component: | Layout and Rendering | Assignee: | Dave Hyatt <hyatt> | ||||||||||
Status: | VERIFIED FIXED | ||||||||||||
Severity: | Normal | ||||||||||||
Priority: | P2 | ||||||||||||
Version: | 420+ | ||||||||||||
Hardware: | Mac | ||||||||||||
OS: | OS X 10.4 | ||||||||||||
Attachments: |
|
Description
mitz
2005-09-22 11:54:02 PDT
Created attachment 4009 [details]
testcase
Created attachment 4011 [details]
flip coordinates when necessary
Note that it needs to flip when the view is unflipped, since the ATSUStyle
itself always flips (see _initializeATSUStyle).
Comment on attachment 4011 [details]
flip coordinates when necessary
Formatting is wrong here. There should not be a space after the "(" in the if
statements. Otherwise, this looks great.
Created attachment 4016 [details]
flip coordinates when necessary
Created attachment 4017 [details]
flip coordinates when necessary
Comment on attachment 4017 [details]
flip coordinates when necessary
Corrected style and use of params.layout instead of layout
Comment on attachment 4017 [details]
flip coordinates when necessary
r=me
Thinking further on this, I think it's not so great to have the renderer depend on there being a currently- focused NSView. Instead, the flippedness should be applied by the caller, or there should be a boolean passed in. I have no objection to landing this patch first, but it's not a good long-term solution. The renderer code should be independent of NSView. |