4187 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
ceb3b814ae Fix up uses of GetOwnerDoc/GetCurrentDoc to use the right one, with an eye
towards general sanity on the one hand and sXBL/XBL2 on the other.  Bug 263200,
r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@163529 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-11 16:14:27 +00:00
bzbarsky%mit.edu
b82e9a1148 Fix ComparePoints() to be faster (helps with things like innerHTML). Bug
262764, r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@163486 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-09 21:02:16 +00:00
bzbarsky%mit.edu
ad59771509 Remove our broken attempt to support <plaintext> (which is very very
deprecated).  Bug 88987, r=jst, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@163474 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-09 16:55:54 +00:00
bmlk%gmx.de
d6ca5264ed reorganize CalCDominantBorder, reduce the number of arguments, change the border structure. make the rules handling more evident, bug 229883, With more than a little help from my friends (fantasai, boris) r/sr=bzbarsky
bustage fix


git-svn-id: svn://10.0.0.236/trunk@163468 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-09 12:25:31 +00:00
bzbarsky%mit.edu
1c5cf9754f Fix some IsFocusable methods to do the right thing. Bug 261707, r=aaronl, sr=jst
git-svn-id: svn://10.0.0.236/trunk@163330 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-07 01:15:40 +00:00
bzbarsky%mit.edu
c1bd80ae5c Don't go through presshells to get to our window; just use the global object.
This fixes various issues that could bite display:none iframes, in particular
bug 262998.  r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@163315 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-06 20:24:18 +00:00
bzbarsky%mit.edu
cd5e4baffe Fix "normal" and "-moz-initial" values for "content" to do the right thing.
Bug 262624, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@163273 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-06 00:45:42 +00:00
bzbarsky%mit.edu
f5d6536bd1 Fix crash if insertRule() is called on an empty string. Bug 261798, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@163272 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-06 00:34:06 +00:00
dbaron%dbaron.org
8552a17451 Add helper functions that make it easier to cache factories. b=261310 r=darin
git-svn-id: svn://10.0.0.236/trunk@163132 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-02 00:44:13 +00:00
mats.palmgren%bredband.net
d83ca07985 Make window.setCursor() use CSS 'cursor' property values. b=260272 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@163089 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 17:15:15 +00:00
bzbarsky%mit.edu
76625d8613 Remove parsing of play-during property, since we don't support it anyway and
it's gone from CSS2.1 and CSS3.  Bug 258079, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@163043 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 22:32:28 +00:00
bzbarsky%mit.edu
c6733ef5e7 Make createContextualFragment work for XML. Bug 133827, patch by
steve.swanson@mackichan.com, r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@163041 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 22:27:45 +00:00
dbaron%dbaron.org
58f19edbad Improve performance of CSS error reporting. b=261283 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162996 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 05:18:05 +00:00
bzbarsky%mit.edu
846fcd519e Set checkbox checked state if we didn't restore it (instead of if we didn't
restore anything at all).  Bug 259486, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@162608 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 18:04:47 +00:00
dbaron%dbaron.org
40677d0de3 Turn on CSS error reporting. b=65469 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162579 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 04:41:42 +00:00
neil%parkwaycc.co.uk
7903ea1651 Don't use QueryInterface to get a view from a scrollable view b=258521 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@162561 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-20 22:25:07 +00:00
dbaron%dbaron.org
123881d207 Fix bustage when CSS error reporting disabled. b=187007
git-svn-id: svn://10.0.0.236/trunk@162555 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-20 20:08:20 +00:00
dbaron%dbaron.org
00ee6e5230 Make CSS errors localizable. b=187007 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162553 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-20 19:38:11 +00:00
dbaron%dbaron.org
807b635c41 Null-check document to fix crash, and a little other cleanup. b=258843 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162512 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-17 20:50:22 +00:00
neil%parkwaycc.co.uk
6eaca763b6 Bug 260070 Improve detection of missing <title>s r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@162509 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-17 20:11:02 +00:00
dbaron%dbaron.org
e8bca4edc1 Add function to nsContentUtils to report a localized error message to the error console, and use it from the three places that were doing pretty much the same thing. b=187007 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162314 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 17:26:35 +00:00
roc+%cs.cmu.edu
ab88d1e1ac Bug 259032. DeCOMtaminate nsIFrame::GetNext/PrevInFlow. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@162269 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 02:28:03 +00:00
bzbarsky%mit.edu
068c8b28b1 Fix crash due to text inputs flushing pending restyles while we're in text
control frame code.  Bug 257818, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@162194 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-13 04:19:58 +00:00
bzbarsky%mit.edu
732e237121 Make sure to flush restyles _before_ we start grabbing layout objects like
presshells, not after...  Bug 258032, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@162171 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-12 20:53:27 +00:00
dbaron%dbaron.org
0c2068f65a Separate sheet URI and base URI for style attributes and for CSS parsing from DOM APIs. b=258707 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162122 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 23:31:48 +00:00
dbaron%dbaron.org
af8931a4f1 Fix DEBUG bustage. b=255538
git-svn-id: svn://10.0.0.236/trunk@162071 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 09:31:10 +00:00
jst%mozilla.jstenback.com
392d7bbfda Fix crash reported in bug 235923. In odd cases when we get into situations where we're submitting a form while we're in the middle of submitting the same form (waiting for a modal dialog), the pending submission from the first call may get deleted. r+sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@162069 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 08:07:04 +00:00
dbaron%dbaron.org
a4ca9058c6 Separate concept of stylesheet URI into base URI (for resolving relative links) and sheet URI (for everything else), since they can differ for style elements (and inline style and style set from script, but that's for the next patch). Some other things (relating to external stylesheets, where it doesn't make a difference) that probably should use the sheet URL are left as the base URL for now because I didn't want to change too much at once. b=255538 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162059 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 06:45:59 +00:00
bzbarsky%mit.edu
0d5a66a19f Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@162051 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 03:52:48 +00:00
bzbarsky%mit.edu
f3fd99f0a7 Add nsCSSValuePair type and use it for storage of some properties. Bug 208729,
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@162049 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 03:26:58 +00:00
bzbarsky%mit.edu
189df3caa3 Look for a form ancestor even if we're not in a document and our parent is
changed.  Bug 257947, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@162048 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 03:16:04 +00:00
neil%parkwaycc.co.uk
279e4281ed Bug 207219 Image resize should zoom clicked position r=varga sr=peterv
git-svn-id: svn://10.0.0.236/trunk@162022 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-09 22:40:40 +00:00
dbaron%dbaron.org
d116431504 Pass line number information for style elements through to the CSS parser so we can give correct line numbers in error reports. b=240420 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@161992 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-09 17:32:35 +00:00
dbaron%dbaron.org
d788090231 Fix serialization of declaration blocks containing 'overflow' and the bugs that causes. b=258300 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@161907 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-08 05:42:03 +00:00
roc+%cs.cmu.edu
25c92b6a90 Bug 254039. deCOMtaminate nsIScrollableFrame. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@161806 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-06 02:44:43 +00:00
dbaron%dbaron.org
d078282226 Land bug 72747 in pieces: Implement overflow-x and overflow-y. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161772 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-05 00:04:04 +00:00
dbaron%dbaron.org
371342cda8 Land bug 72747 in pieces: Simplify the mechanism used to prevent framesets from having scrollbars. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161766 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 19:51:21 +00:00
jst%mozilla.jstenback.com
809b317cb3 Fixing bug 252326. Fixing some popup blocker problems. Making sure only trusted events get mark trusted, and only allow popups while processing trusted (initiated by the user) events. Patch by trev@gtchat.de and jst@mozilla.org, r=bzbarsky@mit.edu, rs=brendan@mozilla.org, bryner@biranryner.com
git-svn-id: svn://10.0.0.236/trunk@161765 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 19:28:46 +00:00
dbaron%dbaron.org
e53ac83c0a Back out previous round of bug 72747 changes due to Tp regression.
git-svn-id: svn://10.0.0.236/trunk@161749 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 08:34:55 +00:00
dbaron%dbaron.org
b8499fbfc0 Land bug 72747 in pieces: Simplify the mechanisms used to prevent framesets from having scrollbars and used to implement the scrolling attribute on frames and iframes. Implement scrolling='yes'. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161744 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 06:53:36 +00:00
dbaron%dbaron.org
f8361bf5d6 Land bug 72747 in pieces: make users of nsIScrollable use nsIScrollable::Scrollbar_* instead of NS_STYLE_OVERFLOW_*. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161727 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-03 21:58:39 +00:00
bryner%brianryner.com
ae9e02402a deCOMify nsIPresShell::GetRootFrame. Change callers inside of gklayout to use FrameManager()->GetRootFrame() instead so that the call can be inlined. Bug 253889, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@161637 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 03:08:51 +00:00
jst%mozilla.jstenback.com
57e55d8a58 Fixing bug 248065. Make sure errors in nested scripts don't disrupt the containing script. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@161580 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 16:50:12 +00:00
dbaron%dbaron.org
dcf4bae71a Back out the rest of bug 72747 due to Tp regression.
git-svn-id: svn://10.0.0.236/trunk@161373 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-27 01:26:55 +00:00
dbaron%dbaron.org
565357f6d2 Backout the CSS parts of bug 72747 to see if that fixes the Tp regression.
git-svn-id: svn://10.0.0.236/trunk@161357 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 22:35:38 +00:00
dbaron%dbaron.org
ed6372cf2f Implement 'overflow-x' and 'overflow-y' CSS properties, long implemented by IE for Windows and proposed for CSS3. Implement scrolling='yes' and equivalents on frame and iframe. Various pieces of related cleanup (see comment 22 in bug). b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161333 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 17:11:20 +00:00
tor%cs.brown.edu
da01ea4deb Bug 216563 - implement <svg:switch>.
Patch by scootermorris@comcast.net, r=afri, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@161152 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-23 21:10:39 +00:00
dbaron%dbaron.org
ba07da6cf7 Make nsCSSValue constructors explicit and fix obscure regression from rule tree landing. b=256270 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@161075 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-20 20:55:17 +00:00
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
timeless%mozdev.org
2d2b43d7bc Bug 238773 Separating nsDOMEvent into separate classes
patch by mozilla-bugzilla@future.shiny.co.il r=bryner sr=jst


git-svn-id: svn://10.0.0.236/trunk@161059 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-20 18:09:19 +00:00