75 Commits

Author SHA1 Message Date
bryner%brianryner.com
2dbfb983b1 Remove refcounting version of nsIPresShell::GetPresContext. Bug 253889, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@161072 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-20 20:34:37 +00:00
mats.palmgren%bredband.net
98a82b2777 Check fo null before using GetFocusedElement result. b=252977 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@160494 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-08 17:18:58 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
rbs%maths.uq.edu.au
0942656e37 Ensure that Find Again (F3) iterates over all matches, even when the ESM::MoveFocusToCaret() takes a shortcut that leaves the focus controller slightly out-of-sync, b=249345, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@158667 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-01 21:29:21 +00:00
jst%mozilla.jstenback.com
b91a41077c Fixing bug 242734. deCOMtaminate nsITextContent. r+sr=bryner@brianryner.com
git-svn-id: svn://10.0.0.236/trunk@156106 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-07 20:55:17 +00:00
bryner%brianryner.com
7247372aa3 deCOMtaminate nsPIDOMWindow (bug 242111). r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@155867 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-03 21:48:36 +00:00
rbs%maths.uq.edu.au
6af5bfc8ad Scroll the find position last so that it is not overriden by another intermediate scrolling, b=242056, r=akkana, sr=jst
git-svn-id: svn://10.0.0.236/trunk@155801 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-01 07:47:23 +00:00
rbs%maths.uq.edu.au
29e5c10d30 Find in textareas misses some matches & some cleanup/consolidation, b=241053, r=akkana, sr=jst
git-svn-id: svn://10.0.0.236/trunk@155603 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-27 22:22:43 +00:00
gerv%gerv.net
586f796c2a Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155091 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 22:01:16 +00:00
rbs%maths.uq.edu.au
aff7d184e9 fix typo
git-svn-id: svn://10.0.0.236/trunk@154939 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 20:35:35 +00:00
rbs%maths.uq.edu.au
bfe77ca6d3 Add the much requested support for find in <textarea> and text <input> elements. Also fix a long-standing problem with the mutually-exclusion: selecting something in a text field doesn't clear an earlier selection outside. b=58305, r=akkana, sr=jst
git-svn-id: svn://10.0.0.236/trunk@154934 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 19:45:46 +00:00
bryner%brianryner.com
62dee43850 deCOMtaminate nsIPresContext::GetEventStateManager. Bug 229371, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@153335 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-27 17:17:37 +00:00
jst%mozilla.jstenback.com
854468a176 Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@152565 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 22:48:53 +00:00
jst%mozilla.jstenback.com
12ed685455 Fixing bug 230840. DeCOMtaminating nsIDocumentObserver, nsIAttribute, nsIContentList, and nsIContentIterator, and doing some other cleanup. r=jonas@sicking.cc, sr=bryner@brianryner.com
git-svn-id: svn://10.0.0.236/trunk@151784 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 00:46:17 +00:00
jst%mozilla.jstenback.com
803e4eb910 General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@151115 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 23:54:21 +00:00
jst%mozilla.jstenback.com
2affc5b4f0 Fixing bug 225837. DeCOMtaminating nsIContent more, making GetTag() return a weak raw pointer, and renaming GetTag() to Tag(), and making GetRangeList() return an const nsVoidArray*, and changing GetContentID() to return the id, and renaming it to ContentID(). r=jonas@sicking.cc, sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@149527 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 01:20:56 +00:00
timeless%mozdev.org
4ea883526c Bug 221845 (Patch) (OS X) put type ahead find string on find pasteboard
patch by haasd@cae.wisc.edu r=akkana sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@148604 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 19:22:23 +00:00
bryner%brianryner.com
eeddf02bde deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:09:48 +00:00
jst%mozilla.jstenback.com
ef67a47aab Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
bryner%brianryner.com
101a9e4e72 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146615 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 22:05:34 +00:00
bzbarsky%mit.edu
9e4941c980 DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@145292 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:35:53 +00:00
jaggernaut%netscape.com
df747d0621 Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@145205 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-25 19:06:59 +00:00
aaronl%netscape.com
63348d831a Bug 211933. Incorrect null check in webbrowserfind code. r=dean_tessman, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@144636 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 06:41:20 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
dbaron%dbaron.org
69da9d4a19 Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
sfraser%netscape.com
4ae47cf5b0 Fix bug 118657: don't allow window.find() to propagate into frames that it doesn't have permissions for. r=msotlz, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@141428 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 00:53:58 +00:00
timeless%mozdev.org
79f28840dc Bug 197653 [@ nsFind::GetWordBreaker] crashes ADDREFing(0)
r=akkana sr=kin


git-svn-id: svn://10.0.0.236/trunk@139617 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 22:55:15 +00:00
sfraser%netscape.com
5ef9013e0c Remove a bogus DEBUG_smfr block. r/sr=bryner
git-svn-id: svn://10.0.0.236/trunk@138745 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-01 00:56:23 +00:00
bryner%netscape.com
6278746fdf Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@136056 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 06:49:07 +00:00
dbaron%dbaron.org
daa2fa4b45 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135995 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:51:43 +00:00
kin%netscape.com
e3b69667f5 Fix for bug #176251 (Problems with nsContentIterator PRE traversal)
content/base/public/nsIContentIterator.h
  content/base/src/nsContentIterator.cpp
  content/base/src/nsGeneratedIterator.cpp
  content/build/nsContentCID.h
  content/build/nsContentModule.cpp
  embedding/components/find/src/nsFind.cpp
  layout/html/style/src/nsFrameContentIterator.cpp

  - Removed MakePre() and MakePost() from the nsIContentIterator interface.
  - Traversal must now be specified at time of creation.
  - Fixed nsContentIterator Init() methods so that they correctly calculate
    mFirst and mLast.
  - Modified PositionAt() to check if the node is in the traversal range.

r=jfrancis@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@134263 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 15:07:49 +00:00
aaronl%netscape.com
67faf008e6 Bug 175046, bug 172991, bug 166471. Make sure typeaheadfind and regular find don't find comment nodes, display:none, visibility:hidden or visibility:collapsed nodes. r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@133095 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 02:59:38 +00:00
aaronl%netscape.com
e72c199b3e Bug 171260. Typeaheadfind in page with frames wrecks normal find. r=akkana, sr=sfraser. a=asa
git-svn-id: svn://10.0.0.236/trunk@132847 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 23:24:33 +00:00
aaronl%netscape.com
388e891855 Bug 171079. Typeaheadfind::findnext overriding regular find next when it shouldn't. r=akkana, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@131431 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 18:00:01 +00:00
aaronl%netscape.com
7aa4d6dbcd Correct nsWebBrowserFind.cpp checkin to fix bustage using NS_NAMED_LITERAL_STRING
git-svn-id: svn://10.0.0.236/trunk@130397 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-25 00:56:34 +00:00
darin%netscape.com
dbd71ea612 fixing aaronl's bustage
git-svn-id: svn://10.0.0.236/trunk@130395 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-25 00:42:40 +00:00
aaronl%netscape.com
f01d5624ca Bug 167921 - allow web pages to use preventDefault so that typeaheadfind doesn't interfere with them. r=kyle, sr=brendan. Also fixes bug 165315 - typeaheadfind shouldn't hardcode kbd shortcuts, bug 77704 - add accelerator for find prev (also added menu item). Also fixes bug 167783 - ctrl+g for typeaheadfind after repeating characters. Also fixes bug 168408 - backspace after bad character typed should do the right thing, but don't add bad characters to buffer. Also fixes bug 71832 - add F3 for find next (also shift+F3). Bug 157669 - Alt+D to select location bar (IE keyboard compatibility), r=sgehani, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@130385 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 22:46:50 +00:00
seawood%netscape.com
0b3ff474f3 Removing old nmake build makefiles. Bug #158528 r=pavlov
git-svn-id: svn://10.0.0.236/trunk@126975 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 07:55:43 +00:00
alecf%netscape.com
ff59a7771d REQUIRES update after find component cleanup
git-svn-id: svn://10.0.0.236/trunk@124881 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:21:37 +00:00
akkana%netscape.com
fb8a01e1eb 126312: remove old find code. r=brade sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124873 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 20:41:51 +00:00
kin%netscape.com
fa152a3def Partial fix for bug 141900 (Text entry fields in forms excruciatingly slow.)
mozilla/content/base/public/nsISelectionController.idl
  mozilla/content/base/src/nsSelection.cpp
  mozilla/editor/composer/src/nsEditorShell.cpp
  mozilla/editor/idl/nsIPlaintextEditor.idl
  mozilla/editor/libeditor/base/nsEditor.cpp
  mozilla/editor/libeditor/base/nsEditor.h
  mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
  mozilla/editor/libeditor/html/nsHTMLEditor.cpp
  mozilla/editor/libeditor/text/nsEditorEventListeners.cpp
  mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp
  mozilla/editor/libeditor/text/nsPlaintextEditor.cpp
  mozilla/editor/txtsvc/src/nsTextServicesDocument.cpp
  mozilla/editor/ui/dialogs/content/EdTableProps.js
  mozilla/embedding/components/find/src/nsWebBrowserFind.cpp
  mozilla/extensions/xmlterm/base/mozXMLTermSession.cpp
  mozilla/layout/base/public/nsIFrameSelection.h
  mozilla/layout/html/base/src/nsPresShell.cpp
  mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp
  mozilla/mailnews/compose/src/nsMsgCompose.cpp
  mozilla/xpfe/browser/resources/content/viewPartialSource.js

    - Added aIsSynchronous arg to the ScrollSelectionIntoView()
      method of nsISelectionController and nsIFrameSelection.
      Updated all callers to pass new arg.

    - Modified selection to post a plevent to call which does the
      call to ScrollIntoView() in the async ScrollIntoView() case.

    - Edits in text widgets now use asynchronous reflow, paint,
      and scroll processing full time.

    - Removed redundant ScrollSelectionIntoView() calls in the
      editor event listeners.

    - Editor IME code now forced to flush reflows and paints before
      getting caret coordinates.

r=jfrancis@netscape.com  sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@123236 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:35:12 +00:00
akkana%netscape.com
e57f658210 134275: make find stop at table cell boundaries. r=brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@121695 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 23:30:59 +00:00
dougt%netscape.com
d6cc711878 Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 18:55:21 +00:00
akkana%netscape.com
c0794125e6 92102: Make find wrap through frames. r=ccarlen sr=alecf
git-svn-id: svn://10.0.0.236/trunk@120901 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-06 23:41:29 +00:00
akkana%netscape.com
1600a4843d 92102: Fix wrapping through frames, and don't find content inside noframes tags. r=ccarlen sr=alecf
git-svn-id: svn://10.0.0.236/trunk@120887 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-06 22:22:13 +00:00
akkana%netscape.com
d946f1ba2b 132612: fix a case where find misses a match after a partial match. r=brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@120493 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 23:57:32 +00:00
akkana%netscape.com
e686e4b0e6 132894: improve our ability to go to the right place in the anchor
node; fix problem where we were skipping matches we should have
found.  r=cmanske sr=sfraser a=asa


git-svn-id: svn://10.0.0.236/trunk@117584 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 03:47:33 +00:00
akkana%netscape.com
7f2161c735 80805, 129971: Check endpoint correctly, don't skip too many nodes after a comment, fix some return values. r=cmanske sr=dveditz a=asa
git-svn-id: svn://10.0.0.236/trunk@116692 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 04:33:20 +00:00
aaronl%netscape.com
aab415c282 Fixes bug 66597, bug 103284, bug 114440, bug 120023, bug 128741, bug 19259. Cleans up browse with caret, makes it work with XML content docs, creates keyboard toggle for it (Accel+shift+K), synchronizes focus and document selection so that users can tab navigate relative to their last find or click in text, or vice versa, makes tabbing move relative to named anchor that has been jumped to. r=bryner, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@116297 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-10 06:21:48 +00:00
akkana%netscape.com
25812279fc 126651,126909: Fix some glitches in the find algorithm. r=cmanske sr=kin a=asa
git-svn-id: svn://10.0.0.236/trunk@115259 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-23 01:12:26 +00:00