[Webkit-unassigned] [Bug 28131] [Haiku] Adding font-specific files to WebCore.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 26 14:09:35 PDT 2009


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


Eric Seidel <eric at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #38638|review?                     |review-
               Flag|                            |




--- Comment #34 from Eric Seidel <eric at webkit.org>  2009-08-26 14:09:35 PDT ---
(From update of attachment 38638)
Not needed:
+#include "NotImplemented.h"

I probably wouldn't have bothered to maintain these copyrights after such
extensive modification:
2  * Copyright (C) 2006 Apple Computer, Inc.
 3  * Copyright (C) 2006 Zack Rusin <zack at kde.org>
 4  * Copyright (C) 2006 Dirk Mueller <mueller at kde.org>
 5  * Copyright (C) 2006 Nikolas Zimmermann <zimmermann at kde.org>
 6  * Copyright (C) 2007 Ryan Leavengood <leavengood at gmail.com>
 7  * Copyright (C) 2009 Maxime Simon <simon.maxime at gmail.com>

This:
115     if (m_font)
 116         return m_font->Spacing() == B_FIXED_SPACING;
 117 
 118     return false;
Should just be:

return m_font && m_font->Spacing() == B_FIXED_SPACING;

Why is this needed?
09     if (m_font && m_font != hashTableDeletedFontValue())
 110         m_font = 0;
Seems useless in the destructor.  setting the raw pointer to 0 does nothing. :)

So you're leaking m_font.  I think you meant to make it an OwnPtr<BFont>

This is going to need at least one more round of review since there were still
obvious leaks in this one. :(  Do you all have any way to check for leaks on
Haiku?

-- 
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