2 Apr 2004 04:07
Re: Is this valid 'larger work' using '#include' or API?
Wang Xianzhu <phnixwxz1 <at> yahoo.com>
2004-04-02 02:07:15 GMT
2004-04-02 02:07:15 GMT
Thank you for your reply. I used 'encryption' as an example just to
describe my question, though it may be an improper design :)
However, I think the "#include" case may violate the original intention
of MPL. I think MPL requires all modifications must be public
avaiblable because they are useful to others.
For example (just an example), the following modification:
***************
*** 2688,2694 ****
--- 2698,2714 ----
// so how big is it?
presContext->GetVisibleArea(shellArea);
presContext->GetTwipsToPixels(&pixelScale);
+
+ /* WXZ: my way to fix the +1 problem
width = PRInt32((float)shellArea.width*pixelScale);
+ */
+ float tempWidth = (float)shellArea.width * pixelScale;
+ width = PRInt32(tempWidth);
+ if (tempWidth - width > 0.001)
+ {
+ // to let the extra 1 pixel when it is required
+ width ++;
+ }
height = PRInt32((float)shellArea.height*pixelScale);
nsCOMPtr<nsIDocShellTreeOwner> treeOwner;
***************
(Continue reading)
Gerv
RSS Feed