for bug 143706 by David Baron)
sr= kin r= alexsavulov a= rjesup. the fix was requested by adt.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@130209 18797224-902f-48f8-a5cc-f745e15eee43
change name from aIsBreakable to aCanBreakBefore,
apply RevertSpaceToNBSP in all situations.
make a word to be breakable before if it is not the first word.
r=rbs, sr=bzbarsky, a=edt, chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@129292 18797224-902f-48f8-a5cc-f745e15eee43
mozilla/layout/base/src/nsSpaceManager.cpp
mozilla/layout/base/src/nsSpaceManager.h
- Implemented nsSpaceManager methods PushState() and PopState().
mozilla/layout/html/base/src/nsBlockReflowContext.cpp
- Modified nsBlockReflowContext::DoReflowBlock() to
call PushState() and PopState() to remove any
floaters that may have been added to the SpaceManager
during the intermediate "unconstrained" Reflow()
call, used to calculate the max block width. This
allows the Reflow() call that immediately follows
it to properly place the floaters.
r=waterson@netscape.comsr=dbaron@fas.harvard.edua=rjesup@wgate.com (on behalf of drivers@mozilla.org)
a=chofmann@netscape.com (on behalf of edt@netscape.com)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@129277 18797224-902f-48f8-a5cc-f745e15eee43
check if the joined 2 pieces is breakable in between before moving to 2nd piece.
r=kin, sr=rbs, a=adt, chofman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126526 18797224-902f-48f8-a5cc-f745e15eee43
sr=rpotts, r=jst, a=rjesup@wgate.com,jaime@netscape.com
make sure we always post new reflow events to the topmost queue, and don't skip creating new reflow events just because we happen to have one an elder queue.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126184 18797224-902f-48f8-a5cc-f745e15eee43
Removed |!aReflowState.path->mReflowCommand| check from |if| condition for the first block that attempts to incrementally reflow the block's absolute children.
This was preventing us from properly reflowing an absolute positioned child or one its children when the current reflow path tree contained both a reflow command targeted at the block and one targeted at the aboslutely positioned child or one of its children. This check shouldn't be necessary since nsAbsoluteContainingBlock::IncrementalReflow() does the necessary checks to see if it really should reflow any of the absolute children.
r=karnaze@netscape.com,waterson@netscape.comsr=dbaron@fas.harvard.edua=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125985 18797224-902f-48f8-a5cc-f745e15eee43
This patch does the following:
1) Introduces a new public interface nsIPrintSettingService which emables
consumers to create PS objects whithout a nsIWebBrowserPrint interface
2) The implementation is nsPrintOptionsImpl which now impls the private
interface nsIPrintOptions and the public iface nsIPrintSettingsService
3) Several methods/attrs have been moved from nsIWebBrowserPrint iface to nsIPrintSettingsService
4) The CIDs for nsIPrintOptions and nsIPrinSettingsService are now the same.
5) There is no longer a CID "@mozilla.org/gfx/printoptions;1"
6) nsIWebBrowserPrint still has the "globalPrintSettings" attr so if you
already have an nsIWebBrowserPrint you don't have to create the PS Service to get it.
7) A bug has been filed to rename the imlp of nsPrintOptionsImpl to nsPrintSettingsService.
Bug 144128 r=dcone sr=kin adt=putterman a=jud
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122881 18797224-902f-48f8-a5cc-f745e15eee43
Modified SlideLine() to use the combined area instead of the linebox
bounds when invalidating. This makes sure that we invalidate the
area occupied by the list bullets/ordinals.
r=dbaron@fas.harvard.edusr=waterson@netscape.coma=valeski@netscape.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122874 18797224-902f-48f8-a5cc-f745e15eee43
changed nsRenderingContext API, and let GetMetricsFor
take lang group as a required argument. Changed all such
calls. Implement a convenient function to simplifed the
code.
r=rbs, sr=waterson, a=adt, rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122452 18797224-902f-48f8-a5cc-f745e15eee43
Changes:
* Added EXTRA_COMPONENTS variable to build. Use it to automagically install files into the components dir.
* Added SYSINSTALL variable. Use it install files onto the system.
* Move mozilla-config generation from configure to makefiles
* mozilla-config will now generate paths based upon the MRE-based directory layout.
* Generate mozilla script from template
The installation heirarchy currently looks like:
$prefix -> /bin/mozilla
/bin/mozilla-config
/include/mozilla-ver/*
/lib/mozilla-ver (mozappdir)
/components
/res
/defaults
/chrome
There is preliminary build support for MRE dirs as well though the component manager hasn't had MRE support added yet.
$prefix -> /lib/mre/mre-ver (mredir)
/components
Bug #56601 r=leaf,a=scc,shaver,tor
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122140 18797224-902f-48f8-a5cc-f745e15eee43
"BinarySearchForPosition" code from the nsTextFrame for finding cursor
position. Instead of cursor position, it is just uses the available width.
Bug 139384 r=dcone sr=attinasi a=chofmann,rjesup adt=putterman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122019 18797224-902f-48f8-a5cc-f745e15eee43
2) It can be difficult to determine whether you are creating/reflowing a UI or
doc scrollbar (SB)
3) They share the same PresContext which has a single scale value that UI SBs
need to ignore, but the doc SBs need to use.
This patch does the following:
1) Enables the PrintPreviewContext to turn on and of the scaling of twips
2) When creating a new scrollbar, it checks to see if the frame parent is
is a viewportframe that way it knows if it is in the UI or in the document
then for UI scrollbars it turns off the saling, and for doc scrollbars it
turns it on. This needs to be done at creation time as well as, reflow
because it GetScaledPixelsToTwips get called during both.
3) The nsSimpleSequenceFrame turns on scaling during its children reflow
then turns it off.
4) When PrintPreview "setup" is done it turns off the scaling in the
PrintPreviewContext because any reflowing other usages for
GetScaledPixelsToTwips will be for UI scrollbars
5) A copy of all the style rules for scrollbars is made and placed inside of
a media type "print" This way the style resultion for the scaled scrollbars
in the document are not shared with the UI.
Bug 120616 r=dcone sr=attinasi adt=putterman a=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121622 18797224-902f-48f8-a5cc-f745e15eee43