[Webkit-unassigned] [Bug 44383] Encapsulate document marker management into DocumentMarkerController

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 22 14:39:08 PDT 2010


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


Daniel Bates <dbates at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|webkit-unassigned at lists.web |dbates at webkit.org
                   |kit.org                     |




--- Comment #3 from Daniel Bates <dbates at webkit.org>  2010-08-22 14:39:08 PST ---
(In reply to comment #2)
> (From update of attachment 65035 [details])
> Yay!  Thank you Dan!
> 
> WebCore/dom/Document.h:1173
>  +      mutable DocumentMarkerController m_markerController;
> It's better for build times if this is an OwnPtr instead.  When its a mutable member you have to include the header in Document.h.   The only reason (I know of) to make these mutable members is to avoid the pointer indirection in hot code paths.  But I don't think DocumentMarkers are hot.  This is not a deal breaker either way.
>

Will change.

> WebCore/dom/DocumentMarkerController.h:48
>  +      void copyMarkers(Node *srcNode, unsigned startOffset, int length, Node *dstNode, int delta, DocumentMarker::MarkerType = DocumentMarker::AllMarkers);
> Style.
> 

Will fix style.

> WebCore/editing/Editor.cpp:1566
>  +          frame()->document()->markerController()->removeMarkers(selectedRange.get(), DocumentMarker::Spelling);
> I might have called the markerController() just markers().
> 

Will rename.

> LGTM.

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