648 Commits

Author SHA1 Message Date
dbaron%dbaron.org
593f58592d Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144735 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 21:16:12 +00:00
bzbarsky%mit.edu
4f63a75a74 Move to the double-'::' notation for various pseudo-elements.
Bug 211657, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@144534 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-07 21:57:01 +00:00
bzbarsky%mit.edu
1c3e765c18 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


git-svn-id: svn://10.0.0.236/trunk@144457 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-04 01:44:24 +00:00
roc+%cs.cmu.edu
0b21d50264 Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144258 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 10:46:59 +00:00
jkeiser%netscape.com
64ac997a95 Make NOSCRIPT show up normally when script disabled (bug 77296), r=bzbarsky@mit.edu, sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@144183 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-26 06:10:03 +00:00
rbs%maths.uq.edu.au
a6c97c6fb0 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
git-svn-id: svn://10.0.0.236/trunk@144128 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 01:14:25 +00:00
jst%netscape.com
b1880963d6 Fixing part of bug 209699. Eliminate bad usage of NS_ConvertU*. r=caillon@aillon.org, sr=alecf@flett.org
git-svn-id: svn://10.0.0.236/trunk@144080 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 01:46:50 +00:00
dbaron%dbaron.org
e9d2634474 Fixing DEBUG-only bustage.
git-svn-id: svn://10.0.0.236/trunk@143965 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 01:05:04 +00:00
dbaron%dbaron.org
80187c571f Remove |aPresContext| and |aPresShell| parameters from |nsIFrameManager| methods. b=208190 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143961 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:52:58 +00:00
dbaron%dbaron.org
519cf3b3d3 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143960 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:44:01 +00:00
dbaron%dbaron.org
aeee69e663 Begin deCOMtamination of central objects by adding inline getters to get from one object to another. b=208190 r=roc sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143940 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 18:16:53 +00:00
bryner%netscape.com
112e4e9f44 Remove unused nsIFrame::Scrolled() and nsIViewObserver::Scrolled(). Bug 209088, r=dbaron, sr=roc.
git-svn-id: svn://10.0.0.236/trunk@143893 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 22:58:51 +00:00
dbaron%dbaron.org
906d582953 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
git-svn-id: svn://10.0.0.236/trunk@143831 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 01:59:57 +00:00
aaronl%netscape.com
290c0f8aa6 Bug 208460. Remove nsIDOM3Node.idl dependency from nsIDOMNode.idl
git-svn-id: svn://10.0.0.236/trunk@143756 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-16 11:17:18 +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
bryner%netscape.com
f21bfd208f Comment-only fix.
git-svn-id: svn://10.0.0.236/trunk@143540 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 22:17:58 +00:00
timeless%mozdev.org
cf3804def9 Bug 205017 Uninitialized variables in layout/html/base/src/nsPresShell.cpp
r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@143112 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-30 19:47:39 +00:00
jaggernaut%netscape.com
fd04e5bb85 Bug 203960: Make bookmark groups replace existing tabs instead of appending. r=jkeiser, varga, adamlock, sr=jst, hewitt
git-svn-id: svn://10.0.0.236/trunk@143070 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-30 00:21:01 +00:00
bzbarsky%mit.edu
a8d5fd5b51 Make some static data const in layout. Bug 204073, patch by ataylor@its.to
(Andrew Taylor), r=bzbarsky, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@142937 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-27 03:52:33 +00:00
dwitte%stanford.edu
dc7e857400 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.


git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:34:47 +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
bryner%netscape.com
468d4be15c 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.


git-svn-id: svn://10.0.0.236/trunk@142319 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-12 07:11:16 +00:00
jst%netscape.com
1a3fdb6d94 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. r=pavlov@pavlov.net, sr=darin@netscape.com, a=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@142281 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-09 20:42:49 +00:00
bzbarsky%mit.edu
32f33c5a39 Fix scroll state restoration when going back to URL with anchor. Bug 204364,
r=jkeiser, sr=dbaron, a=asa


git-svn-id: svn://10.0.0.236/trunk@142162 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-06 05:46:46 +00:00
bzbarsky%mit.edu
450b865962 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


git-svn-id: svn://10.0.0.236/trunk@141839 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-26 01:13:28 +00:00
jst%netscape.com
4fac069d27 Fixing bug 199399. Eliminating the interfaces nsIXMLDocument now that it's not needed any more. r=peterv@netscape.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@141626 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 21:57:25 +00:00
sfraser%netscape.com
cbc443676c 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.
git-svn-id: svn://10.0.0.236/trunk@141607 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 18:11:12 +00:00
bzbarsky%mit.edu
b51212ed63 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


git-svn-id: svn://10.0.0.236/trunk@141541 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:06:40 +00:00
bryner%netscape.com
6d58bc1d0d Remove now-unused nsScrollingView and nsIScrollbar implementations. Removed unused widget/public/nsWidgetSupport.h. Bug 201624, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@141538 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:01:36 +00:00
kmcclusk%netscape.com
0a1d8d7ffd Prevent status bar from painting synchronously to prevent flicker. b=129844 r=jkeiser sr=kin
git-svn-id: svn://10.0.0.236/trunk@141224 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 02:01:12 +00:00
aaronl%netscape.com
947985ab30 Bug 193802. Implement xp accessibility cache. r=kyle, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@141171 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 08:45:55 +00:00
bryner%netscape.com
0c66a2052e 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.


git-svn-id: svn://10.0.0.236/trunk@141016 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:56:27 +00:00
bryner%netscape.com
fa8b5f2eb3 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.


git-svn-id: svn://10.0.0.236/trunk@140635 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 08:14:51 +00:00
heikki%netscape.com
e1c2bcdb80 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.
git-svn-id: svn://10.0.0.236/trunk@139800 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 23:45:42 +00:00
bryner%netscape.com
b351e785ca 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.
git-svn-id: svn://10.0.0.236/trunk@139721 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 23:41:44 +00:00
bzbarsky%mit.edu
b72b8b5208 Fix a few inefficient callers of getElementsByTagName. Bug 191589,
r=neil@parkwaycc.co.uk, sr=jst


git-svn-id: svn://10.0.0.236/trunk@139521 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 16:30:09 +00:00
roc+%cs.cmu.edu
071d5592f4 Bug 183905. Allow horizontal scrolling with mouse sticks. Patch by Dainis_Jonitis, r+sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@139310 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 03:22:11 +00:00
aaronl%netscape.com
60b1c05bf1 Bug 194968. Use content id properly to expose whether window is content vs. UI. r/sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@139051 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 23:07:00 +00:00
dbaron%dbaron.org
089db98924 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
git-svn-id: svn://10.0.0.236/trunk@139035 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:14:17 +00:00
dbaron%dbaron.org
3b86a016bb 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 <bzbarsky@mit.edu>. r=dbaron sr=roc b=171830
git-svn-id: svn://10.0.0.236/trunk@139034 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:07:22 +00:00
sfraser%netscape.com
2636d9a8d0 Fix bug 74404: show caret drag feedback. r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@138640 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 23:09:51 +00:00
jst%netscape.com
43d9987e62 Fixing bug 182700. Make 'Copy Image Location' work for <input type=image> elements. r=timeless@myrealbox.com, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@138575 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 01:38:20 +00:00
dbaron%dbaron.org
ecbfd3050c Make CtlStyleWatch |#ifdef MOZ_PERF_METRICS|. b=191831 r+sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@138218 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:26:30 +00:00
bryner%netscape.com
c44337949a 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.
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
jkeiser%netscape.com
4b26324c60 Make mousey events targeted properly at textnodes (bug 185889, bug 103055), fix client-side image maps (bug 110072), r=saari@netscape.com, sr=bryner@netscape.com, a=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@137825 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-14 21:43:06 +00:00
dbaron%dbaron.org
2cccec9239 Fix leak when handling key events on zombie pages. b=192336 r+sr=roc a=asa
git-svn-id: svn://10.0.0.236/trunk@137678 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-11 20:26:42 +00:00
jkeiser%netscape.com
f8391e212d Fix window focus event regressions (bug 190767), patch by Ruslan Ismailov (croo@nm.ru), r=jkeiser@netscape.com, sr=bryner@netscape.com
git-svn-id: svn://10.0.0.236/trunk@137244 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-01 05:26:16 +00:00
jkeiser%netscape.com
febf4c259f Stop firing mouse events at textnodes, fix tooltips not going away onmouseout (bug 185889, bug 185965), r=bryner@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@136753 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-21 21:26:45 +00:00
caillon%returnzero.com
4e9b13ef00 Bug 14777 - Give inline background image painting a rhyme and reason to how it works. Implement CSS3 proposal (-moz-)background-inline-policy.
r+sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@136499 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 09:33:52 +00:00
dbaron%dbaron.org
19a9279a84 Implement CSS3 :target pseudo-class, which matches the target of the fragment identifier of the document's URL. Change the semantics of nsIPresShell::GoToAnchor by requiring that it be called whenever the current target changes, with an additional boolean parameter specifying whether to scroll. b=188734 r=glazman sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136266 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-13 23:10:53 +00:00