Commit Graph

28 Commits

Author SHA1 Message Date
Boris Zbarsky
b4295b1789 Bug 486547 part 1. Switch nsTypedSelection to storing nsIRange, not nsIDOMRange, objects. r+sr=smaug 2009-04-06 13:17:37 -04:00
Josh Aas
a017628a07 Stop using FlatCarbon headers on Mac OS X. b=482277 r=bsmedberg 2009-03-19 10:41:13 -07:00
Jonathan Kew
a71b6947db Bug 328412 - Find in empty document triggers "ASSERTION: No first node!"; r=bzbarsky sr=jst 2009-03-04 08:43:02 +01:00
Benjamin Smedberg
24e7cb1f78 Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

nsITextControlFrame didn't have an IID the first time around, but this wasn't a compile error because nsITextControlFrame::kFrameIID inherited from nsIFormControlFrame::kFrameIID. I've added a static analysis pass to verify the correct behavior, since I can't figure out a way to make the compiler do it.

--HG--
extra : rebase_source : 4894a2ca0278e2ab92f27459db77165f8348cf41
2009-01-12 14:20:59 -05:00
Benjamin Smedberg
50621e4f9f Backed out changeset 4c4df6ed1b41 - Bug 396185 - Make nsIFrame not inherit from nsISupports due to mochitest failures... these appear to be crashes in nsGenericHTMLElement::GetEditorInternal. 2009-01-09 11:35:24 -05:00
Benjamin Smedberg
d0b948876f Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

This patch locally causes two REFTEST-UNEXPECTED-PASS for Bidi stuff. It's possible that I accidentally fixed a bug, but I'm not sure, so I'm going to wait for the tinderboxes to confirm my local results.
2008-11-05 14:25:30 -05:00
Olli Pettay
9d96a5cb3f bug 302775 - extractContents doesn't work if start and end node of a Range object is an attribute node, r=peterv, sr=sicking 2008-10-15 12:40:28 +03:00
Serge Gautherie
32a5364978 Bug 450048 - "nsFind.cpp(961) : warning C4309: 'initializing' : truncation of constant value"; class/interface test; r+sr=jst 2008-09-23 03:32:13 +02:00
Boris Zbarsky
34d8ca626c Back out bug 333177 "fix", since it would break searching across ­ 2008-08-25 13:21:29 -04:00
Serge Gautherie
bfd14369bb Bug 450048 - nsFind.cpp(961) : warning C4309: 'initializing' : truncation of constant value, r+sr=jst 2008-08-14 08:24:12 +02:00
L. David Baron
2c2f6ed495 Change the binding parent for native anonymous content to work like the binding parent for XBL anonymous content, and be the parent of the anonymous content subtree rather than the root of the anonymous content subtree. (Bug 436453) r=bzbarsky,smaug,surkov sr=bzbarsky 2008-07-22 21:50:20 -07:00
Olli.Pettay@helsinki.fi
a62b4fccf2 Bug 423965, [@ nsFind::Find], r+sr=jst, a=beltzner 2008-03-31 04:58:00 -07:00
Olli.Pettay@helsinki.fi
95d79558ef Bug 414338, nsFind crashes if passed a range rooted at a document, r+sr=jst 2008-03-18 03:10:21 -07:00
masayuki@d-toybox.com
3dcfbbf7fc Bug 418470 Go to line in View Source broken (NS_ERROR_UNEXPECTED at nsISelectionController.scrollSelectionIntoView) (retry) r+sr=roc, a1.9b4=beltzner 2008-02-28 07:28:37 -08:00
masayuki@d-toybox.com
f6e10b8d70 backing out the previous patch, becaused qm-centos5-01 dep unit test is orange 2008-02-28 05:59:25 -08:00
masayuki@d-toybox.com
22b844e897 Bug 418470 Go to line in View Source broken (NS_ERROR_UNEXPECTED at nsISelectionController.scrollSelectionIntoView) r+sr=roc, a1.9b4=beltzner 2008-02-28 03:01:56 -08:00
Olli.Pettay@helsinki.fi
67622f2077 Bug 411054, Audit IsNativeAnonymous()/GetBindingParent() uses, r+sr=sicking 2008-02-26 04:40:18 -08:00
masayuki@d-toybox.com
cb5c20d581 Bug 392785 overflowed underline sometimes is not repainted at scrolling r+sr=roc b1.9=dbaron 2008-02-16 07:31:27 -08:00
dtownsend@oxymoronical.com
f048a0771b Bug 404773: Find bar doesn't like the letters 'b', 'o', 'd', 'y', and 'random'. s+sr=jst, a=P1 blocking 2007-12-06 13:19:16 -08:00
bzbarsky@mit.edu
7d2c337a2b Make find code less sensitive to exactly which nodes return true for IsNativeAnonymous(). Bug 403090, r+sr=mats, a=schrep 2007-11-18 10:53:43 -08:00
masayuki@d-toybox.com
a17a03f2ea Bug 392252 need new APIs for converting AppUnits to gfx usable pixels r=sharparrow1, sr+a=roc 2007-08-22 04:13:46 -07:00
mozilla.mano@sent.com
471f246adb Bug 294615 - Search/find fails on words containing soft hyphen (­). r+sr=jst. 2007-07-24 13:47:42 -07:00
bzbarsky@mit.edu
bac20260c9 Use a Subsumes() check, not a same-origin one. r+sr=jst 2007-07-09 21:14:00 -07:00
bzbarsky@mit.edu
0eb40f4042 Make the ranges used by find code able to span anonymous content. Bug 384706,
r+sr=sicking
2007-06-18 20:01:03 -07:00
bzbarsky@mit.edu
32d3d359f4 Introduce a GetPrimaryShell() API on nsIDocument. Convert existing callers ofGetShellAt(0) to using this API. Bug 378780. API introduction part by me,r+sr=jst. Mass-changes done by taras using squash, r+sr=me 2007-05-01 15:24:20 -07:00
martijn.martijn@gmail.com
b3757f8df8 Bug 378178 - Some code that doesn't compile under DEBUG_FIND anymore, r+sr=bzbarsky 2007-04-21 04:00:01 -07:00
bzbarsky@mit.edu
38706bcdfd Don't try to use ranges to represent chunks of the flattened tree, becauseranges can't have endpoints that are anonymous wrt the other endpoint. Bug374873, r+sr=rbs 2007-04-18 13:05:42 -07:00
hg@mozilla.com
465265d0d4 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00