roc+%cs.cmu.edu
22e0ff6cb8
Bug 251162. Landing experimental implementation of CSS3 columns. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@163416 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-08 12:17:10 +00:00
alex%croczilla.com
049fc5de75
Landing of the XTF branch, bug#253225. XTF is the eXtensible Tag
...
Framework; see mozilla/content/xtf/readme.txt. r=bryner, sr=jst. Code
is not enabled by default (requires --enable-xtf configure option).
git-svn-id: svn://10.0.0.236/trunk@163386 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-07 20:59:53 +00:00
bzbarsky%mit.edu
09bf6e10e5
Create a GetGeometricParent() function and make people use it instead of
...
(incorrectly, usually) rolling their own. Bug 191151, initial cut of patch by
jkeiser back when, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@163044 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 22:39:28 +00:00
bzbarsky%mit.edu
b5b1e1b77a
Make sure not to add entries to the pending restyle hashtable while enumerating
...
it. Bug 257694 (also fixes bug 256242, bug 258101). r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162193 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-13 04:08:14 +00:00
dbaron%dbaron.org
2ad99ee1c7
Land bug 72747 in pieces: use new functions for common overflow tests. b=72747 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@161683 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 23:37:02 +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
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
bzbarsky%mit.edu
bc3dc7ebe0
Do style reresolves and restyles due to attribute changes asynchronously so
...
that pages that modify two or more style properties of the same object in a row
work faster. Bug 230170, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@160587 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 03:24:41 +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
dbaron%dbaron.org
b3b0bcf362
Make WipeContainingBlock walk up further when the containing block is the block part of an inline that contains a block. b=244454 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@158041 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 18:51:17 +00:00
gerv%gerv.net
2ac510b678
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155068 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:30:37 +00:00
roc+%cs.cmu.edu
a69c586b63
Bug 234851. Propagate any overflow style from HTML or BODY elements to the viewport, and make it work dynamically. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@154761 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 02:56:03 +00:00
sicking%bigfoot.com
e4632ed495
Bug 237566: Remove nsIContent::ReplaceChildAt and supportive codepaths.
...
r=bz sr=jst
git-svn-id: svn://10.0.0.236/trunk@154723 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 22:48:33 +00:00
dbaron%dbaron.org
950b1a4459
Implement 'quotes' property correctly by tracking quote nesting depth using a linked list. Patch by Esben Mose Hansen <esben@oek.dk>, Ulrich Drepper <drepper@redhat.com>, and me. b=24861
...
git-svn-id: svn://10.0.0.236/trunk@154706 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 21:53:22 +00:00
bzbarsky%mit.edu
4681cee324
Fix bug 236921. This makes the root node's style context have no parent, makes
...
computed style calculations properly parent the computed context, and fixes a
but with "border-color: inherit" on the root. r=caillon, sr=dbaron, a=asa
git-svn-id: svn://10.0.0.236/trunk@154362 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-29 16:00:38 +00:00
bryner%brianryner.com
d956db112f
Get rid of nsIFrameManager abstract interface to the frame manager. Bug 233972, r+sr=roc.
...
git-svn-id: svn://10.0.0.236/trunk@153111 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 21:29:06 +00:00
dbaron%dbaron.org
e5ad15e520
Rename {nsIDocument,nsIDocumentObserver,nsIFrame}::ContentChanged to CharacterDataChanged, since that's the only thing it's used for. Replace its nsISupports* parameter with a PRBool, since we don't need to allocate an object to pass a boolean parameter. Remove some (but probably not all) unneeded implementations on frames whose content is never a text node. b=234960 r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@153040 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 21:38:31 +00:00
dbaron%dbaron.org
6dd1e040bf
Replaced elements should not support generated content. b=169334 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@152945 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 18:04:15 +00:00
bryner%brianryner.com
2dce372072
DeCOMtaminate nsCSSFrameConstructor (bug 231157). This gets rid of the nsIStyleFrameConstruction and nsICSSFrameConstructor interfaces. The frame constructor now has the same lifetime as the pres shell. r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@151662 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 23:05:10 +00:00
dbaron%dbaron.org
4ff69b3d4c
Refactor code that calls ComputeStyleChangeFor and handles the result. b=231027 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@151466 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-17 22:43:14 +00:00
dbaron%dbaron.org
44cf91f9e8
Do style resolution of later siblings required by the CSS + combinator on event state and attribute changes by changing the result of Has(Attribute|State)DependentStyle into a bitfield and setting and handling the restyle-later-siblings bit appropriately. b=15608 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@151284 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 01:36:35 +00:00
bryner%brianryner.com
468d3e2e8d
Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
dbaron%dbaron.org
33601224e0
Use the correct term "float" instead of "floater". b=218654 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@147924 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-13 21:51:02 +00:00
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
dbaron%dbaron.org
af97e3f0b8
Ensure relatively positioned floats act as containing block for absolutely positioned elements by using (and adding a parameter to) nsCSSFrameConstructor::ConstructBlock. Remove ProcessBlockChildren, which no longer needs to be separate from ProcessChildren. b=210873 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144304 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 21:48:07 +00:00
dbaron%dbaron.org
e5b5aaaee2
Handle state and attribute changes on elements without frames more efficiently, and keep the undisplayed map up to date. b=209733 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@143888 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 21:54: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
scott%scott-macgregor.org
73a63a10b5
Bug #201891 --> lazily instantiate CSSFrameConstructor::gXBLService in order to break a weird cycle
...
with the component manager that can cause two instances of the xbl service to be created.
r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@143225 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-03 04:23:56 +00:00
dbaron%dbaron.org
14904b0f8b
Remove some code left over from old native form controls. b=205575 r+sr=roc a=asa
...
git-svn-id: svn://10.0.0.236/trunk@142464 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-14 22:36:33 +00:00
bzbarsky%mit.edu
d1f7fb48d5
Pass the content parent frame to ConstructTableFrame so the view that's created
...
goes in the right place in the z-ordering. Bug 203086, r+sr=roc, a=asa
git-svn-id: svn://10.0.0.236/trunk@141838 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-26 01:08:35 +00:00
bzbarsky%mit.edu
9861b52663
Make sure that Init() failures for image frames don't mean no alt text. Also
...
fixes a crasher when reframing fixed-pos frames.
This change adds an assertion in ConstructHTMLFrame that InitAndRestoreFrame
should succeed (unless it returns NS_ERROR_FRAME_REPLACED). This is an interim
change; eventually we want to bail out on errors, but there may be frame impls
that return errors in non-error conditions from Init() (eg nsFrameSetFrame did
that) and we're a little close to freeze.
Bug 202506, r=rbs, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@141552 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:57:47 +00:00
bryner%netscape.com
2b86f1c62f
Remove nsScrollFrame and frame constructor support for it. Remove dlldeps.cpp for layout, it's not necessary. Bug 201457, r+sr=roc.
...
git-svn-id: svn://10.0.0.236/trunk@141023 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 08:26:42 +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
roc+%cs.cmu.edu
d4ac9a5795
Bug 126263. Whack comboboxes/listboxes to use Gfx scrollbars. Also, make scrollbars attach their XBL content only when they become visible, to avoid pageload hit. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@140858 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:50:57 +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
roc+%cs.cmu.edu
20d65dce1c
Bug 186754. Make sure scrolled elements honor the content hierarchy for z-index. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@138255 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 02:03:43 +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
karnaze%netscape.com
8ece4a7c7a
bug 179683 - implement printing of fixed positioned elemements, clean up ViewportFrame. sr=roc, r=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@136686 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-20 18:04:34 +00:00
dbaron%fas.harvard.edu
721fd4b402
Don't set NS_BLOCK_SPACE_MGR and NS_BLOCK_WRAP_SIZE on relatively positioned blocks, by default. Use |ConstructBlock| for them rather than duplicating it, slightly incorrectly. b=180711 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@135259 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 20:13:17 +00:00
karnaze%netscape.com
ca5804764b
bug 180805 - Added GetAdjustedParentFrame to handle fieldsets. Moved inner/outer table logic there. Added fieldset logic to IsValidSibling. sr=bzbarsky, r=jkeiser.
...
git-svn-id: svn://10.0.0.236/trunk@134696 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 16:02:42 +00:00
bzbarsky%mit.edu
75e86ee39c
ReframeContainingBlock needs to work on <body> and such too. Bug 74951,
...
r=caillon, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@133083 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 02:26:52 +00:00
roc+%cs.cmu.edu
c6bb83f66a
Bug 160936. Add type nsChangeHint for style hints. Make it a set of bits. Make sure an NS_STYLE_HINT_REFLOW always also does a repaint of the frame. r=dbaron,sr=kin
...
git-svn-id: svn://10.0.0.236/trunk@128041 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-24 14:41:28 +00:00
jkeiser%netscape.com
be99cc147f
Make form within table or tr not create a cell frame and screw up layout. bug 149282, r=dbaron@fas.harvard.edu, sr=waterson@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@123307 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 06:47:35 +00:00
dbaron%fas.harvard.edu
cfc603f54a
Fix crashes related to editing of HR elements by wrapping generated content for leaf frames in an extra frame so :before and :after are always the first/last children of the primary frame. Disable generated content for floating and absolutely positioned leaf frames. b=141054 sr=waterson r=kin
...
git-svn-id: svn://10.0.0.236/trunk@123127 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 03:27:48 +00:00
dbaron%fas.harvard.edu
6ebd080e55
Clean up FindFrameWithContent. No need to search children of special frames too (hang bug 140275). Use special sibling when next-in-flow isn't available, and use the hint even when we have special frames. Convert gotos into additional while loop. Turn useless :after check into assertion. Don't modify aParentFrame and aParentContent for when the hint fails. b=140275 r=attinasi sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@121620 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 13:39:44 +00:00
karnaze%netscape.com
cc7a86e2f4
bug 113235 - avoid reframing when content is inserted inside an inline frame which contains a block. sr=waterson, r=attinasi.
...
git-svn-id: svn://10.0.0.236/trunk@120331 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-30 21:34:15 +00:00
karnaze%netscape.com
c4272e08c7
bug 136848 - consider a sibling of type col group, col, row group as a valid siblings of a child only if the child is the same type. sr=attinasi, r=kin
...
git-svn-id: svn://10.0.0.236/trunk@119348 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-19 03:11:29 +00:00
dbaron%fas.harvard.edu
1e850f52c6
Fix up and enable hierarchical :hover and remove the hacks that made :hover work for anchors without it. Pass mask rather than pseudo-class to ContentStatesChanged notifications. Optimize event state changes in the style system by passing state mask to HasStateDependentStyle and using it in HasStateDependentStyle implementations. b=5693 r=bryner, joki sr=hyatt
...
git-svn-id: svn://10.0.0.236/trunk@118715 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-11 03:49:30 +00:00
hewitt%netscape.com
7fd03a3524
bugs 110156, 110155
...
Removing support for <outliner> tags
Removing <tree> layout code and moving <tree> tags to outliner layout
Convert all usage of <outliner> to tree tags
Convert all usage of <tree> tags to new <tree> syntax or <listbox>
r=cmanske,varga sr=hyatt,sspitzer a=asa
Also includes fixes by Jan Varga (varga@utcruk.sk ) for bugs 132020, 133451, 131393, 115894, and 129327
git-svn-id: svn://10.0.0.236/trunk@117710 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-29 02:46:01 +00:00