bryner%brianryner.com
b5347dd60c
Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@150598 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 05:36:36 +00:00
dbaron%dbaron.org
a8191642ef
Do inheritance without layout-dependent computations, per CSS2.1. Remove eStyleUnit_Inherit and nsStyleCoord::SetInheritValue. b=205790 r+sr=bzbarsky a=asa
...
git-svn-id: svn://10.0.0.236/trunk@149687 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-24 19:46:25 +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
uid502
e56ed2443c
Bug 190735. DeCOMtaminate nsIFrame::GetFrameType. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@148665 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-31 20:19:18 +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
bzbarsky%mit.edu
502d0ad799
More bug 214969 -- HTML nodes lie about their namespace, so check the
...
document's case-sensitivity instead. r+sr=tor
git-svn-id: svn://10.0.0.236/trunk@147982 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-15 05:54:46 +00:00
bzbarsky%mit.edu
84b6b42418
Only propagate the body background to the canvas in HTML documents; don't do it
...
for XHTML. Bug 214969, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@147981 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-15 02:48:25 +00:00
dbaron%dbaron.org
37de3855c7
Make URIs in the style system nsIURI pointers instead of strings. b=113173 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@147501 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-01 22:53:56 +00:00
caillon%returnzero.com
feee4e42a8
Fixing bustage
...
git-svn-id: svn://10.0.0.236/trunk@145376 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 09:09:30 +00:00
caillon%returnzero.com
c8612ff038
Bug 38370.
...
Allow color of an HR element to be changed.
Make HR be a block element in quirks mode instead of the hacky inline we were previously using (standards mode already had it as a block).
Patch by Ian Hickson <ian@hixie.ch> with minor modifications by me.
r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@145375 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 08:13:07 +00:00
bzbarsky%mit.edu
82c14d79dd
DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
...
r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@145289 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:25:13 +00:00
roc+%cs.cmu.edu
ffca092722
Ongoing deCOMtamination. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@144476 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-05 15:04:34 +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
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
smontagu%netscape.com
d9bd84f916
Fix rounding issue in DrawTile() and remove a bogus assertion. Bug 194791, Author=paper@animecity.nu, r=smontagu, sr=roc+moz
...
git-svn-id: svn://10.0.0.236/trunk@143065 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-29 23:29:37 +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
roc+%cs.cmu.edu
722a5b8f40
Bug 199897. Fix regression by being smarter about how we clip border painting to the dirty rect. r=bernd,sr=dbaron,a=asa
...
git-svn-id: svn://10.0.0.236/trunk@142402 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-14 00:44:38 +00:00
roc+%cs.cmu.edu
c43b1f1f74
Bug 113232. Support translucent chrome. Relanding, fingers crossed. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@140762 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-06 02:49:40 +00:00
darin%netscape.com
418b92e9d5
backing out roc+%cs.cmu.edu check-in for bug 113232
...
git-svn-id: svn://10.0.0.236/trunk@140172 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 00:07:00 +00:00
bmlk%gmx.de
64e4c7b1b5
dont clip composite borders, bug 197086 r/sr=roc+moz
...
git-svn-id: svn://10.0.0.236/trunk@140137 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 10:17:25 +00:00
roc+%cs.cmu.edu
6f0e8cad25
Bug 113232. Make 'background:transparent' work on top-level XUL windows. r=pavlov,kmcclusk,bzbarsky,sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@140132 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 04:57:22 +00:00
bmlk%gmx.de
f08a661ed7
clip the border at the dirty rectangle, bug 86249 r+sr=roc+moz
...
git-svn-id: svn://10.0.0.236/trunk@139278 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 15:15:08 +00:00
paper%animecity.nu
fd2e96c27b
Bug 194108 Don't PaintBackgroundColor when tiled image is opaque and fully covering. r=caillon sr=roc+moz
...
git-svn-id: svn://10.0.0.236/trunk@138993 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 23:34:48 +00:00
roc+%cs.cmu.edu
ad79d0e7da
Bug 191938. 'Dont print backgrounds' by setting background to white. also clean up unused params and make background-attachment:fixed work in printing/printpreview. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@138258 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 02:49:22 +00:00
roc+%cs.cmu.edu
4a676c1821
Bug 189723. Fix valgrind warning on uninitialized value when GetPenMode isn't implemented. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@138238 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 22:27:45 +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
caillon%returnzero.com
b9398c95d8
189533, background-position has low accuracy. Specifically, it was not allowing fractional percentages.
...
r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@136615 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-19 02:36:04 +00:00
caillon%returnzero.com
9eac0ede5b
Fix build bustage. OS/2 and Sun Workshop won't do implicit type conversions (like .get() on an nsCOMPtr) while trying to match a template.
...
See also revision 3.188 of this file.
git-svn-id: svn://10.0.0.236/trunk@136508 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 12:16:36 +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
bzbarsky%mit.edu
ddf6bf65b0
Change the algorithm used to darken text when printing a tad to produce better
...
results. Bug 141232, r/sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@135851 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-05 04:52:27 +00:00
caillon%returnzero.com
6fa69e00be
186752 - Need one more null check, this time before CallQueryInterface. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@135660 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-28 00:03:33 +00:00
caillon%returnzero.com
0aaf7ffe86
Bug 186752 - Crash during background painting when there is no scrollable frame. Add a null check.
...
r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@135650 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-27 07:32:17 +00:00
caillon%returnzero.com
bd02488338
Bug 46814 - Fixed attachment background images should not be positioned underneath scrollbars, when positioning on a side which has scrollbars.
...
r=dbaron sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@135597 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 22:08:04 +00:00
cbiesinger%web.de
54ceae4528
186158 r+sr=dbaron unused function TileImage in nsCSSRendering.cpp
...
git-svn-id: svn://10.0.0.236/trunk@135544 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-21 10:33:38 +00:00
bzbarsky%mit.edu
6a7cda2ae1
Fix build bustage. OS/2 and Sun Workshop won't do implicit type
...
conversions (like .get() on an nsCOMPtr) while trying to match a
template, apparently... r=cls
git-svn-id: svn://10.0.0.236/trunk@131573 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 04:51:59 +00:00
bzbarsky%mit.edu
a70a392a2c
Make GetParent on nsStyleContext return an
...
already_AddRefed<nsIStyleContext>. Bug 171808, r=jkeiser, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@131531 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 01:46:15 +00:00
caillon%returnzero.com
0f7366d6d0
Correcting our background painting code per the latest CSS specs. By default, backgrounds should be painted to the border
...
area, and not the padding area as per the CSS 2 Errata, CSS2.1 and CSS3. Also, implementing the CSS3 'background-clip'
and 'background-origin' properties (currently with -moz- prefixes) to control this behavior.
Bug 162252, r=dbaron sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@131419 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 10:24:53 +00:00
hyatt%netscape.com
231ada71e5
Fix for 169373, make HTML form controls fully support native look on Windows XP. r/sr=hewitt/blake
...
git-svn-id: svn://10.0.0.236/trunk@130192 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-21 01:03:38 +00:00
alecf%netscape.com
35855739dd
fix for bug 163736 - consolidate gfx2 into gfx, and remove the gfx2 DLL from the build.
...
r=pavlov, sr=rbs
includes creating a new "Shared" library which shares gfx code between all platforms
git-svn-id: svn://10.0.0.236/trunk@129305 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-12 04:43:31 +00:00
caillon%returnzero.com
a9ec620790
Bug 45557 - Rounded transparent borders are not transparent.
...
r=bzbarsky sr=jag
git-svn-id: svn://10.0.0.236/trunk@128529 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 06:39:34 +00:00
dcone%netscape.com
99d5eac239
b=148598 r=mcclusky,sr=kin Speed up scrolling
...
git-svn-id: svn://10.0.0.236/trunk@127550 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-18 00:46:00 +00:00
dbaron%fas.harvard.edu
1be537f3c0
Move FindNonTransparentBackground from nsStyleUtil to nsCSSRendering so that nsStyleUtil doesn't need to be in content/shared. b=71257 r=heikki sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@127035 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-11 17:56:15 +00:00
dcone%netscape.com
8919c7ccdd
Backing out changes for the background speedup.. it broke some hoovering code.. on a web page.
...
I want to investigate this before I leave the patch in.
git-svn-id: svn://10.0.0.236/trunk@126240 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-02 18:21:33 +00:00
dcone%netscape.com
769ea6c8fa
b=148598 r=peterl sr=kin a=asa. This speeds up scrolling with very large backgrounds.
...
git-svn-id: svn://10.0.0.236/trunk@126115 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-31 17:13:25 +00:00
dcone%netscape.com
463438b1e1
Backing out changes. Something is interacting wrong with scroll bars.. so I will investigate.
...
git-svn-id: svn://10.0.0.236/trunk@125996 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-29 17:48:22 +00:00
dcone%netscape.com
c3907f8985
b=148598 Very Slow scrolling. r=rods sr=kin a=asa. Fixed the update area for the background images. Improves scrolling 100%
...
git-svn-id: svn://10.0.0.236/trunk@125987 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-29 13:28:32 +00:00
dbaron%fas.harvard.edu
fb8751252d
Replace assertion with a comment explaining why we need to null-check the result of |nsIDOMHTMLDocument::GetBody|. b=119351 r=kin sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@121082 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-08 19:27:40 +00:00
pinkerton%netscape.com
ffdf250be4
fix build bustage
...
git-svn-id: svn://10.0.0.236/trunk@118858 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 15:26:05 +00:00
dcone%netscape.com
ad2aee4f0c
b=135208 r=kmcclusk@netscape.com sr=attinasi a=asa Fixed printing of color text when we dont
...
have a background.
git-svn-id: svn://10.0.0.236/trunk@118855 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 14:30:00 +00:00
karnaze%netscape.com
b5480ba60f
bug 134845 - avoid dividing by zero during pixel rounding. a=asa, adt=jamiejr, sr=attinasi, r=kin
...
git-svn-id: svn://10.0.0.236/trunk@118406 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-06 22:28:39 +00:00