Closed
Bug 281944
Opened 20 years ago
Closed 19 years ago
Port Layout to WinCE
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: dougt, Assigned: dougt)
References
Details
Attachments
(1 file)
|
2.46 KB,
patch
|
dbaron
:
review-
|
Details | Diff | Splinter Review |
A few build changes to make mozilla/layout compile for wince.
| Assignee | ||
Comment 1•20 years ago
|
||
this patch does the following: 1) I have noticed that sometimes gfx returns no font metrics. In this case, we crash since we are checking if GetMetricsFor does really return a fm. 2) On WinCE (at least Pocket PC 2003), CreateEvent is not defined as it is on other Win32 platforms.
| Assignee | ||
Updated•20 years ago
|
Comment on attachment 174048 [details] [diff] [review] Patch v.1 >Index: layout/generic/nsHTMLReflowState.cpp > nsCOMPtr<nsIFontMetrics> fm; > deviceContext->GetMetricsFor(font->mFont, vis->mLangGroup, > *getter_AddRefs(fm)); >- if (unit == eStyleUnit_Factor) { >+ if (unit == eStyleUnit_Factor && fm) { GetMetricsFor is required to return non-null. If it's not doing that, fix the gfx code so that it does instead. r=dbaron on the other half, though
Attachment #174048 -
Flags: review?(dbaron) → review-
That said, I'm puzzled as to why you need to make the other change. It seems like it could break things -- we're using a member function called CreateEvent, presumably, and we don't want it to pick up a different name under WINCE. So, actually, I want more information before saying r=dbaron on the second half.
| Assignee | ||
Comment 4•20 years ago
|
||
yes, it may be that neither of these changes will be required.
| Assignee | ||
Comment 5•19 years ago
|
||
no change was required. marking invalid.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•