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.
This commit is contained in:
@@ -46,7 +46,7 @@ class nsPrintObject;
|
||||
class nsISelection;
|
||||
class nsIPresShell;
|
||||
class nsIDocument;
|
||||
class nsIStyleSet;
|
||||
class nsStyleSet;
|
||||
class nsIContent;
|
||||
class nsIWebShell;
|
||||
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
virtual PRBool GetIsCreatingPrintPreview() = 0;
|
||||
|
||||
virtual nsresult CreateStyleSet(nsIDocument* aDocument, nsIStyleSet** aStyleSet) = 0;
|
||||
virtual nsresult CreateStyleSet(nsIDocument* aDocument, nsStyleSet** aStyleSet) = 0;
|
||||
|
||||
virtual nsresult GetDocumentSelection(nsISelection **aSelection,
|
||||
nsIPresShell * aPresShell = nsnull) = 0;
|
||||
@@ -97,7 +97,7 @@ public:
|
||||
virtual void SetIsPrintPreview(PRBool aIsPrintPreview); \
|
||||
virtual PRBool GetIsPrintPreview(); \
|
||||
virtual PRBool GetIsCreatingPrintPreview(); \
|
||||
virtual nsresult CreateStyleSet(nsIDocument* aDocument, nsIStyleSet** aStyleSet); \
|
||||
virtual nsresult CreateStyleSet(nsIDocument* aDocument, nsStyleSet** aStyleSet); \
|
||||
virtual nsresult GetDocumentSelection(nsISelection **aSelection, nsIPresShell * aPresShell = nsnull); \
|
||||
virtual void IncrementDestroyRefCount(); \
|
||||
virtual void ReturnToGalleyPresentation(); \
|
||||
|
||||
Reference in New Issue
Block a user