Commit Graph
2650 Commits
Author SHA1 Message Date
[email protected] 653ef468ea Remove redundant #include. 2003-07-12 18:10:51 +00:00
[email protected] e498864545 Add inline accessors for frame manager. b=208190 r+sr=roc 2003-07-12 00:48:16 +00:00
[email protected] 660339f971 Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky 2003-07-11 21:16:12 +00:00
[email protected] cd6e02fda7 Move to the double-'::' notation for various pseudo-elements.
Bug 211657, r+sr=dbaron
2003-07-07 21:57:01 +00:00
[email protected] cfe82976bb Don't bother reresolving style when empty stylesheets get added (eg from empty
<style> elements).  Also remove the methods for blowing away the ruletree
during a style reresolve, since ruletrees are now garbage-collected.  Bug
196557, r+sr=dbaron
2003-07-04 01:44:24 +00:00
[email protected] acbd7967d4 Ongoing deCOMtamination. r+sr=dbaron 2003-06-30 10:46:59 +00:00
[email protected] ee2a67dca3 Make NOSCRIPT show up normally when script disabled (bug 77296), [email protected], [email protected] 2003-06-26 06:10:03 +00:00
[email protected] 261c9a73d1 Helper patch for bug 15364. Expose an API to allow scripts to show the caret even in selections (a la Emacs). Users can also set the pref ui.caretVisibleWithSelection to 1, which gives a nice combination with caret browsing (hit F7). r=sfraser, sr=bzbarsky 2003-06-25 01:14:25 +00:00
[email protected] b52c8fe710 Fixing part of bug 209699. Eliminate bad usage of NS_ConvertU*. [email protected], [email protected] 2003-06-24 01:46:50 +00:00
[email protected] 0ab6cd90ac Fixing DEBUG-only bustage. 2003-06-20 01:05:04 +00:00
[email protected] 5755dea24a Remove |aPresContext| and |aPresShell| parameters from |nsIFrameManager| methods. b=208190 r+sr=bzbarsky 2003-06-19 23:52:58 +00:00
[email protected] 384f320c3a DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc 2003-06-19 23:44:01 +00:00
[email protected] 6d4c063340 Begin deCOMtamination of central objects by adding inline getters to get from one object to another. b=208190 r=roc sr=bzbarsky 2003-06-19 18:16:53 +00:00
[email protected] f665fdef8e Remove unused nsIFrame::Scrolled() and nsIViewObserver::Scrolled(). Bug 209088, r=dbaron, sr=roc. 2003-06-18 22:58:51 +00:00
[email protected] 99d81c4dbc Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky 2003-06-18 01:59:57 +00:00
[email protected] 5a602642aa Bug 208460. Remove nsIDOM3Node.idl dependency from nsIDOMNode.idl 2003-06-16 11:17:18 +00:00
[email protected] c8a200d763 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
[email protected]
2003-06-13 20:10:01 +00:00
[email protected] e75177e0b7 Comment-only fix. 2003-06-10 22:17:58 +00:00
[email protected] d6694848d3 Bug 205017 Uninitialized variables in layout/html/base/src/nsPresShell.cpp
r=dbaron sr=dbaron
2003-05-30 19:47:39 +00:00
[email protected] 0a22e59792 Bug 203960: Make bookmark groups replace existing tabs instead of appending. r=jkeiser, varga, adamlock, sr=jst, hewitt 2003-05-30 00:21:01 +00:00
[email protected] 6105820b98 Make some static data const in layout. Bug 204073, patch by [email protected]
(Andrew Taylor), r=bzbarsky, sr=alecf
2003-05-27 03:52:33 +00:00
[email protected] 0be0aa3679 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to [email protected] (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.
2003-05-23 21:34:47 +00:00
[email protected] f98e358469 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 2003-05-15 03:42:21 +00:00
[email protected] be52ecc97d Fixes for a number of focus problems:
Bug 201996 (caret blinking in field, but can't type)
Bug 200735 (window is raised when opening link in a new tab)
Bug 203117 (unable to scroll view source window with keyboard)
Bug 194104 (focus is in last tab when opening new window with tabgroup)

Summary of the changes:
- Don't require a frame to be present for focus events.  This allows events like activate and deactivate to correctly update the focus controller even if the document hasn't been reflowed.
- General cleanup and adding of comments in nsEventStateManager::PreHandleEvent.  We now also reuse the event struct when firing focus/blur events to the content, document, and window.
- In nsHTMLElement::SetFocus() and Select(), make sure to set the focused window as well as the focused element, if the focus controller is inactive.
- Fixed handling of certain conditions in PresShell::CheckForFocus() where the results would be different depending on whether the parent or child document unsuppressed painting first.
- General cleanup in PresShell::HandleEvent() and HandleEventInternal().

r=jkeiser, sr=jst, a=sspitzer.
2003-05-12 07:11:16 +00:00
[email protected] 9a897e5250 Fixing bug 93015. Making sure image that start loading before the page is done loading get added to the documents load group to prevent the page's onload handler from running before the image's onload handler runs. [email protected], [email protected], [email protected] 2003-05-09 20:42:49 +00:00
[email protected] a39dd9e541 Fix scroll state restoration when going back to URL with anchor. Bug 204364,
r=jkeiser, sr=dbaron, a=asa
2003-05-06 05:46:46 +00:00
[email protected] 9a0dd9f692 Make sure to flush reflows before trying to scroll so that frame coordinates
will be up-to-date.  Bug 186149, r=peterv, sr=jst, a=asa
2003-04-26 01:13:28 +00:00
[email protected] 4d0cb4dc54 Fixing bug 199399. Eliminating the interfaces nsIXMLDocument now that it's not needed any more. [email protected], [email protected] 2003-04-22 21:57:25 +00:00
[email protected] cf60916c5f Fix bug 196704: implement commands to get the selected text, and insert text, to allow for embedders (like Camino) to use them, e.g. for the Mac OS X services menu. Also fix image copy. r=brade, sr=kin. 2003-04-22 18:11:12 +00:00
[email protected] 5ec2a2a039 Make nsCSSFrameConstructor::AppendFrames be smarter about looking for :after
pseudos.  Move some utility functions into nsLayoutUtils; simplify some places
that basically had copies of those functions.  Improves perf a bit in bug
145425 and its dependencies, r+sr=roc+moz
2003-04-21 23:06:40 +00:00
[email protected] c83377b4f6 Remove now-unused nsScrollingView and nsIScrollbar implementations. Removed unused widget/public/nsWidgetSupport.h. Bug 201624, r+sr=roc. 2003-04-21 23:01:36 +00:00
[email protected] 486ea76a5d Prevent status bar from painting synchronously to prevent flicker. b=129844 r=jkeiser sr=kin 2003-04-16 02:01:12 +00:00
[email protected] 1a2a00cb33 Bug 193802. Implement xp accessibility cache. r=kyle, sr=alecf 2003-04-15 08:45:55 +00:00
[email protected] 4486f8d13d Make --disable-xul work (bug 69995). We build enough XUL to support
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree.  r=bzbarsky, sr=alecf.
2003-04-11 00:56:27 +00:00
[email protected] daf5cc7c80 Improve logic for focusing the DOM window on page loads to deal with the
document of a previously focused iframe still being present.  Fixes bug
170811, clicking a link in an iframe which loads in a parent window causes
loss of focus.  r=saari, sr=jst.
2003-04-03 08:14:51 +00:00
[email protected] 1f16563940 Bug 182323, implemented XPointer spec, we now support the framework, shorthand syntax, element, fixptr, xpath1 and xmlns schemes, and provide a proprietary API from scripts, r=sicking, sr=peterv. 2003-03-19 23:45:42 +00:00
[email protected] 9d47b4106f Fix stuck tabbing through imagemaps (bug 124789) by tracking the focused frame separately from the focused content node in this case. r=jkeiser, sr=bzbarsky. 2003-03-18 23:41:44 +00:00
[email protected] 3655f48f6d Fix a few inefficient callers of getElementsByTagName. Bug 191589,
[email protected], sr=jst
2003-03-15 16:30:09 +00:00
[email protected] 913e581e2e Bug 183905. Allow horizontal scrolling with mouse sticks. Patch by Dainis_Jonitis, r+sr=roc+moz 2003-03-12 03:22:11 +00:00
[email protected] 598b39f46a Bug 194968. Use content id properly to expose whether window is content vs. UI. r/sr=roc+moz 2003-03-06 23:07:00 +00:00
[email protected] 55bea67586 Implement garbage collection of the rule tree to fix some cases of memory growth and to allow us to move towards style rule immutability. b=117316 r+sr=bzbarsky 2003-03-06 19:14:17 +00:00
[email protected] e9466869d1 Handle inline style changes by creating new style rules to wrap the modified nsCSSDeclarations, thus moving towards style rule immutability and away from property-based change hints. Patch from Boris Zbarsky <[email protected]>. r=dbaron sr=roc b=171830 2003-03-06 19:07:22 +00:00
[email protected] fee2a1edd9 Fix bug 74404: show caret drag feedback. r=brade, sr=kin 2003-02-27 23:09:51 +00:00
[email protected] df5a33f1fa Fixing bug 182700. Make 'Copy Image Location' work for <input type=image> elements. [email protected], [email protected] 2003-02-27 01:38:20 +00:00
[email protected] 21bf7765b6 Make CtlStyleWatch |#ifdef MOZ_PERF_METRICS|. b=191831 r+sr=roc+moz 2003-02-22 19:26:30 +00:00
[email protected] ba58162e96 Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron. 2003-02-22 00:32:13 +00:00
[email protected] 94c76a717b Make mousey events targeted properly at textnodes (bug 185889, bug 103055), fix client-side image maps (bug 110072), [email protected], [email protected], [email protected] 2003-02-14 21:43:06 +00:00
[email protected] 92ee160064 Fix leak when handling key events on zombie pages. b=192336 r+sr=roc a=asa 2003-02-11 20:26:42 +00:00
[email protected] 32e5d7a98b Fix window focus event regressions (bug 190767), patch by Ruslan Ismailov ([email protected]), [email protected], [email protected] 2003-02-01 05:26:16 +00:00
[email protected] 25206a99cb Stop firing mouse events at textnodes, fix tooltips not going away onmouseout (bug 185889, bug 185965), [email protected], [email protected] 2003-01-21 21:26:45 +00:00