Remove unused content quality stubs. b=111346 r+sr=bzbarsky
This commit is contained in:
Родитель
56dc425c51
Коммит
f61c45ed1a
|
@ -94,7 +94,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel(void) { return NS_OK; }
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel) { return NS_OK; }
|
||||
NS_IMETHOD DidBuildModel(void) { return NS_OK; }
|
||||
NS_IMETHOD WillInterrupt(void) { return NS_OK; }
|
||||
NS_IMETHOD WillResume(void) { return NS_OK; }
|
||||
NS_IMETHOD SetParser(nsIParser* aParser) { return NS_OK; }
|
||||
|
|
|
@ -91,7 +91,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel(void) { return NS_OK; }
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel) { return NS_OK; }
|
||||
NS_IMETHOD DidBuildModel(void) { return NS_OK; }
|
||||
NS_IMETHOD WillInterrupt(void) { return NS_OK; }
|
||||
NS_IMETHOD WillResume(void) { return NS_OK; }
|
||||
NS_IMETHOD SetParser(nsIParser* aParser) { return NS_OK; }
|
||||
|
|
|
@ -241,7 +241,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel(void);
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel);
|
||||
NS_IMETHOD DidBuildModel(void);
|
||||
NS_IMETHOD WillInterrupt(void);
|
||||
NS_IMETHOD WillResume(void);
|
||||
NS_IMETHOD SetParser(nsIParser* aParser);
|
||||
|
@ -2687,7 +2687,7 @@ HTMLContentSink::WillBuildModel(void)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
|
||||
HTMLContentSink::DidBuildModel(void)
|
||||
{
|
||||
|
||||
// NRA Dump stopwatch stop info here
|
||||
|
@ -2714,21 +2714,6 @@ HTMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
|
|||
domDoc->SetTitle(mTitle);
|
||||
}
|
||||
|
||||
// XXX this is silly; who cares? RickG cares. It's part of the
|
||||
// regression test. So don't bug me.
|
||||
PRInt32 i, ns = mDocument->GetNumberOfShells();
|
||||
for (i = 0; i < ns; i++) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
mDocument->GetShellAt(i, getter_AddRefs(shell));
|
||||
if (shell) {
|
||||
nsCOMPtr<nsIViewManager> vm;
|
||||
nsresult rv = shell->GetViewManager(getter_AddRefs(vm));
|
||||
if (NS_SUCCEEDED(rv) && vm) {
|
||||
vm->SetQuality(nsContentQuality(aQualityLevel));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Reflow the last batch of content
|
||||
if (mBody) {
|
||||
SINK_TRACE(SINK_TRACE_REFLOW,
|
||||
|
|
|
@ -78,7 +78,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel(void);
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel);
|
||||
NS_IMETHOD DidBuildModel(void);
|
||||
NS_IMETHOD WillInterrupt(void);
|
||||
NS_IMETHOD WillResume(void);
|
||||
NS_IMETHOD SetParser(nsIParser* aParser);
|
||||
|
@ -281,7 +281,7 @@ nsHTMLFragmentContentSink::WillBuildModel(void)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFragmentContentSink::DidBuildModel(PRInt32 aQualityLevel)
|
||||
nsHTMLFragmentContentSink::DidBuildModel(void)
|
||||
{
|
||||
FlushText();
|
||||
|
||||
|
|
|
@ -98,9 +98,9 @@ nsLoadSaveContentSink::WillBuildModel(void)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsLoadSaveContentSink::DidBuildModel(PRInt32 aQualityLevel)
|
||||
nsLoadSaveContentSink::DidBuildModel(void)
|
||||
{
|
||||
return mBaseSink->DidBuildModel(aQualityLevel);
|
||||
return mBaseSink->DidBuildModel();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -70,7 +70,7 @@ public:
|
|||
|
||||
// nsILoadSaveContentSink
|
||||
NS_IMETHOD WillBuildModel(void);
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel);
|
||||
NS_IMETHOD DidBuildModel(void);
|
||||
NS_IMETHOD WillInterrupt(void);
|
||||
NS_IMETHOD WillResume(void);
|
||||
NS_IMETHOD SetParser(nsIParser* aParser);
|
||||
|
|
|
@ -393,22 +393,8 @@ nsXMLContentSink::MaybePrettyPrint()
|
|||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
|
||||
nsXMLContentSink::DidBuildModel()
|
||||
{
|
||||
// XXX this is silly; who cares?
|
||||
PRInt32 i, ns = mDocument->GetNumberOfShells();
|
||||
for (i = 0; i < ns; i++) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
mDocument->GetShellAt(i, getter_AddRefs(shell));
|
||||
if (shell) {
|
||||
nsCOMPtr<nsIViewManager> vm;
|
||||
shell->GetViewManager(getter_AddRefs(vm));
|
||||
if(vm) {
|
||||
vm->SetQuality(nsContentQuality(aQualityLevel));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (mTitleText.IsEmpty()) {
|
||||
nsCOMPtr<nsIDOMNSDocument> dom_doc(do_QueryInterface(mDocument));
|
||||
if (dom_doc) {
|
||||
|
|
|
@ -101,7 +101,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel(void);
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel);
|
||||
NS_IMETHOD DidBuildModel(void);
|
||||
NS_IMETHOD WillInterrupt(void);
|
||||
NS_IMETHOD WillResume(void);
|
||||
NS_IMETHOD SetParser(nsIParser* aParser);
|
||||
|
|
|
@ -131,7 +131,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel(void);
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel);
|
||||
NS_IMETHOD DidBuildModel(void);
|
||||
NS_IMETHOD WillInterrupt(void);
|
||||
NS_IMETHOD WillResume(void);
|
||||
NS_IMETHOD SetParser(nsIParser* aParser);
|
||||
|
@ -453,25 +453,8 @@ XULContentSinkImpl::WillBuildModel(void)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULContentSinkImpl::DidBuildModel(PRInt32 aQualityLevel)
|
||||
XULContentSinkImpl::DidBuildModel(void)
|
||||
{
|
||||
#if FIXME
|
||||
// XXX this is silly; who cares?
|
||||
PRInt32 i, ns = mDocument->GetNumberOfShells();
|
||||
for (i = 0; i < ns; i++) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
mDocument->GetShellAt(i, getter_AddRefs(shell));
|
||||
if (nsnull != shell) {
|
||||
nsIViewManager* vm;
|
||||
shell->GetViewManager(&vm);
|
||||
if(vm) {
|
||||
vm->SetQuality(nsContentQuality(aQualityLevel));
|
||||
}
|
||||
NS_RELEASE(vm);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryReferent(mDocument);
|
||||
if (doc) {
|
||||
doc->EndLoad();
|
||||
|
|
|
@ -106,7 +106,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel(void) { return NS_OK; }
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel);
|
||||
NS_IMETHOD DidBuildModel();
|
||||
NS_IMETHOD WillInterrupt(void) { return NS_OK; }
|
||||
NS_IMETHOD WillResume(void) { return NS_OK; }
|
||||
NS_IMETHOD SetParser(nsIParser* aParser) { return NS_OK; }
|
||||
|
@ -237,7 +237,7 @@ txStylesheetSink::ReportError(const PRUnichar *aErrorText,
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
txStylesheetSink::DidBuildModel(PRInt32 aQualityLevel)
|
||||
txStylesheetSink::DidBuildModel()
|
||||
{
|
||||
return mCompiler->doneLoading();
|
||||
}
|
||||
|
|
|
@ -80,11 +80,9 @@ public:
|
|||
* This method gets called when the parser concludes the process
|
||||
* of building the content model via the content sink.
|
||||
*
|
||||
* @param aQualityLevel describes how well formed the doc was.
|
||||
* 0=GOOD; 1=FAIR; 2=POOR;
|
||||
* @update 5/7/98 gess
|
||||
*/
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel)=0;
|
||||
NS_IMETHOD DidBuildModel()=0;
|
||||
|
||||
/**
|
||||
* This method gets called when the parser gets i/o blocked,
|
||||
|
|
|
@ -101,7 +101,7 @@ public:
|
|||
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
|
||||
NS_IMETHOD AddDocTypeDecl(const nsIParserNode& aNode);
|
||||
NS_IMETHOD WillBuildModel(void) { return NS_OK; }
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel) { return NS_OK; }
|
||||
NS_IMETHOD DidBuildModel(void) { return NS_OK; }
|
||||
NS_IMETHOD WillInterrupt(void) { return NS_OK; }
|
||||
NS_IMETHOD WillResume(void) { return NS_OK; }
|
||||
NS_IMETHOD SetParser(nsIParser* aParser) { return NS_OK; }
|
||||
|
|
|
@ -641,7 +641,7 @@ nsresult CNavDTD::DidBuildModel(nsresult anErrorCode,
|
|||
result = CloseContainersTo(mBodyContext->Last(), PR_FALSE);
|
||||
if (NS_FAILED(result)) {
|
||||
//No matter what, you need to call did build model.
|
||||
aSink->DidBuildModel(0);
|
||||
aSink->DidBuildModel();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
@ -678,11 +678,11 @@ nsresult CNavDTD::DidBuildModel(nsresult anErrorCode,
|
|||
if (mComputedCRC32 != mExpectedCRC32) {
|
||||
if (mExpectedCRC32 != 0) {
|
||||
printf("CRC Computed: %u Expected CRC: %u\n,",mComputedCRC32,mExpectedCRC32);
|
||||
result = aSink->DidBuildModel(2);
|
||||
result = aSink->DidBuildModel();
|
||||
}
|
||||
else {
|
||||
printf("Computed CRC: %u.\n",mComputedCRC32);
|
||||
result = aSink->DidBuildModel(3);
|
||||
result = aSink->DidBuildModel();
|
||||
NS_ENSURE_SUCCESS(result, result);
|
||||
}
|
||||
}
|
||||
|
@ -702,7 +702,7 @@ nsresult CNavDTD::DidBuildModel(nsresult anErrorCode,
|
|||
} //if aparser
|
||||
|
||||
//No matter what, you need to call did build model.
|
||||
return aSink->DidBuildModel(0);
|
||||
return aSink->DidBuildModel();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(void)
|
||||
|
|
|
@ -471,7 +471,7 @@ nsresult COtherDTD::DidBuildModel(nsresult anErrorCode,PRBool aNotifySink,nsIPar
|
|||
} //if aparser
|
||||
|
||||
//No matter what, you need to call did build model.
|
||||
result = aSink->DidBuildModel(0);
|
||||
result = aSink->DidBuildModel();
|
||||
|
||||
} //if asink
|
||||
return result;
|
||||
|
|
|
@ -1029,8 +1029,11 @@ nsExpatDriver::DidBuildModel(nsresult anErrorCode,
|
|||
{
|
||||
// Check for mSink is intentional. This would make sure
|
||||
// that DidBuildModel() is called only once on the sink.
|
||||
nsresult result = (mSink)? aSink->DidBuildModel(0) : NS_OK;
|
||||
NS_IF_RELEASE(mSink);
|
||||
nsresult result = NS_OK;
|
||||
if (mSink) {
|
||||
result = aSink->DidBuildModel();
|
||||
NS_RELEASE(mSink); // assigns null
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ nsLoggingSink::WillBuildModel() {
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsLoggingSink::DidBuildModel(PRInt32 aQualityLevel) {
|
||||
nsLoggingSink::DidBuildModel() {
|
||||
|
||||
WriteTabs(mOutput,--mLevel);
|
||||
PR_fprintf(mOutput, "</begin>\n");
|
||||
|
@ -160,7 +160,7 @@ nsLoggingSink::DidBuildModel(PRInt32 aQualityLevel) {
|
|||
//proxy the call to the real sink if you have one.
|
||||
nsresult theResult=NS_OK;
|
||||
if(mSink) {
|
||||
theResult=mSink->DidBuildModel(aQualityLevel);
|
||||
theResult=mSink->DidBuildModel();
|
||||
}
|
||||
|
||||
return theResult;
|
||||
|
|
|
@ -62,7 +62,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel();
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel);
|
||||
NS_IMETHOD DidBuildModel();
|
||||
NS_IMETHOD WillInterrupt();
|
||||
NS_IMETHOD WillResume();
|
||||
NS_IMETHOD SetParser(nsIParser* aParser);
|
||||
|
|
|
@ -784,7 +784,7 @@ NS_IMETHODIMP CViewSourceHTML::DidBuildModel(nsresult anErrorCode,PRBool aNotify
|
|||
nsCParserNode htmlNode(&htmlToken, 0/*stack token*/);
|
||||
mSink->CloseHTML();
|
||||
}
|
||||
result = mSink->DidBuildModel(1);
|
||||
result = mSink->DidBuildModel();
|
||||
}
|
||||
|
||||
START_TIMER();
|
||||
|
|
|
@ -80,11 +80,9 @@ public:
|
|||
* This method gets called when the parser concludes the process
|
||||
* of building the content model via the content sink.
|
||||
*
|
||||
* @param aQualityLevel describes how well formed the doc was.
|
||||
* 0=GOOD; 1=FAIR; 2=POOR;
|
||||
* @update 5/7/98 gess
|
||||
*/
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel)=0;
|
||||
NS_IMETHOD DidBuildModel()=0;
|
||||
|
||||
/**
|
||||
* This method gets called when the parser gets i/o blocked,
|
||||
|
|
|
@ -101,7 +101,7 @@ public:
|
|||
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
|
||||
NS_IMETHOD AddDocTypeDecl(const nsIParserNode& aNode);
|
||||
NS_IMETHOD WillBuildModel(void) { return NS_OK; }
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel) { return NS_OK; }
|
||||
NS_IMETHOD DidBuildModel(void) { return NS_OK; }
|
||||
NS_IMETHOD WillInterrupt(void) { return NS_OK; }
|
||||
NS_IMETHOD WillResume(void) { return NS_OK; }
|
||||
NS_IMETHOD SetParser(nsIParser* aParser) { return NS_OK; }
|
||||
|
|
|
@ -641,7 +641,7 @@ nsresult CNavDTD::DidBuildModel(nsresult anErrorCode,
|
|||
result = CloseContainersTo(mBodyContext->Last(), PR_FALSE);
|
||||
if (NS_FAILED(result)) {
|
||||
//No matter what, you need to call did build model.
|
||||
aSink->DidBuildModel(0);
|
||||
aSink->DidBuildModel();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
@ -678,11 +678,11 @@ nsresult CNavDTD::DidBuildModel(nsresult anErrorCode,
|
|||
if (mComputedCRC32 != mExpectedCRC32) {
|
||||
if (mExpectedCRC32 != 0) {
|
||||
printf("CRC Computed: %u Expected CRC: %u\n,",mComputedCRC32,mExpectedCRC32);
|
||||
result = aSink->DidBuildModel(2);
|
||||
result = aSink->DidBuildModel();
|
||||
}
|
||||
else {
|
||||
printf("Computed CRC: %u.\n",mComputedCRC32);
|
||||
result = aSink->DidBuildModel(3);
|
||||
result = aSink->DidBuildModel();
|
||||
NS_ENSURE_SUCCESS(result, result);
|
||||
}
|
||||
}
|
||||
|
@ -702,7 +702,7 @@ nsresult CNavDTD::DidBuildModel(nsresult anErrorCode,
|
|||
} //if aparser
|
||||
|
||||
//No matter what, you need to call did build model.
|
||||
return aSink->DidBuildModel(0);
|
||||
return aSink->DidBuildModel();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(void)
|
||||
|
|
|
@ -471,7 +471,7 @@ nsresult COtherDTD::DidBuildModel(nsresult anErrorCode,PRBool aNotifySink,nsIPar
|
|||
} //if aparser
|
||||
|
||||
//No matter what, you need to call did build model.
|
||||
result = aSink->DidBuildModel(0);
|
||||
result = aSink->DidBuildModel();
|
||||
|
||||
} //if asink
|
||||
return result;
|
||||
|
|
|
@ -1029,8 +1029,11 @@ nsExpatDriver::DidBuildModel(nsresult anErrorCode,
|
|||
{
|
||||
// Check for mSink is intentional. This would make sure
|
||||
// that DidBuildModel() is called only once on the sink.
|
||||
nsresult result = (mSink)? aSink->DidBuildModel(0) : NS_OK;
|
||||
NS_IF_RELEASE(mSink);
|
||||
nsresult result = NS_OK;
|
||||
if (mSink) {
|
||||
result = aSink->DidBuildModel();
|
||||
NS_RELEASE(mSink); // assigns null
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ nsLoggingSink::WillBuildModel() {
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsLoggingSink::DidBuildModel(PRInt32 aQualityLevel) {
|
||||
nsLoggingSink::DidBuildModel() {
|
||||
|
||||
WriteTabs(mOutput,--mLevel);
|
||||
PR_fprintf(mOutput, "</begin>\n");
|
||||
|
@ -160,7 +160,7 @@ nsLoggingSink::DidBuildModel(PRInt32 aQualityLevel) {
|
|||
//proxy the call to the real sink if you have one.
|
||||
nsresult theResult=NS_OK;
|
||||
if(mSink) {
|
||||
theResult=mSink->DidBuildModel(aQualityLevel);
|
||||
theResult=mSink->DidBuildModel();
|
||||
}
|
||||
|
||||
return theResult;
|
||||
|
|
|
@ -62,7 +62,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel();
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel);
|
||||
NS_IMETHOD DidBuildModel();
|
||||
NS_IMETHOD WillInterrupt();
|
||||
NS_IMETHOD WillResume();
|
||||
NS_IMETHOD SetParser(nsIParser* aParser);
|
||||
|
|
|
@ -784,7 +784,7 @@ NS_IMETHODIMP CViewSourceHTML::DidBuildModel(nsresult anErrorCode,PRBool aNotify
|
|||
nsCParserNode htmlNode(&htmlToken, 0/*stack token*/);
|
||||
mSink->CloseHTML();
|
||||
}
|
||||
result = mSink->DidBuildModel(1);
|
||||
result = mSink->DidBuildModel();
|
||||
}
|
||||
|
||||
START_TIMER();
|
||||
|
|
|
@ -156,7 +156,7 @@ public:
|
|||
|
||||
// nsIContentSink
|
||||
NS_IMETHOD WillBuildModel(void);
|
||||
NS_IMETHOD DidBuildModel(PRInt32 aQualityLevel);
|
||||
NS_IMETHOD DidBuildModel(void);
|
||||
NS_IMETHOD WillInterrupt(void);
|
||||
NS_IMETHOD WillResume(void);
|
||||
NS_IMETHOD SetParser(nsIParser* aParser);
|
||||
|
@ -665,7 +665,7 @@ RDFContentSinkImpl::WillBuildModel(void)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
RDFContentSinkImpl::DidBuildModel(PRInt32 aQualityLevel)
|
||||
RDFContentSinkImpl::DidBuildModel(void)
|
||||
{
|
||||
if (mDataSource) {
|
||||
nsCOMPtr<nsIRDFXMLSink> sink = do_QueryInterface(mDataSource);
|
||||
|
|
|
@ -115,24 +115,6 @@ public:
|
|||
*/
|
||||
NS_IMETHOD GetScrolledView(nsIView *&aScrolledView) const = 0;
|
||||
|
||||
/**
|
||||
* Select whether quality level should be displayed in view frame
|
||||
* @param aShow if PR_TRUE, quality level will be displayed, else hidden
|
||||
*/
|
||||
NS_IMETHOD ShowQuality(PRBool aShow) = 0;
|
||||
|
||||
/**
|
||||
* Query whether quality level should be displayed in view frame
|
||||
* @return if PR_TRUE, quality level will be displayed, else hidden
|
||||
*/
|
||||
NS_IMETHOD GetShowQuality(PRBool &aShow) const = 0;
|
||||
|
||||
/**
|
||||
* Select whether quality level should be displayed in view frame
|
||||
* @param aShow if PR_TRUE, quality level will be displayed, else hidden
|
||||
*/
|
||||
NS_IMETHOD SetQuality(nsContentQuality aQuality) = 0;
|
||||
|
||||
/**
|
||||
* Select whether scroll bars should be displayed all the time, never or
|
||||
* only when necessary.
|
||||
|
|
|
@ -51,13 +51,6 @@ class nsRegion;
|
|||
class nsIDeviceContext;
|
||||
class nsIViewObserver;
|
||||
|
||||
enum nsContentQuality {
|
||||
nsContentQuality_kGood = 0,
|
||||
nsContentQuality_kFair,
|
||||
nsContentQuality_kPoor,
|
||||
nsContentQuality_kUnknown
|
||||
};
|
||||
|
||||
enum nsRectVisibility {
|
||||
nsRectVisibility_kVisible,
|
||||
nsRectVisibility_kAboveViewport,
|
||||
|
@ -360,24 +353,6 @@ public:
|
|||
*/
|
||||
NS_IMETHOD GetDeviceContext(nsIDeviceContext *&aContext) = 0;
|
||||
|
||||
/**
|
||||
* Select whether quality level should be displayed in root view
|
||||
* @param aShow if PR_TRUE, quality level will be displayed, else hidden
|
||||
*/
|
||||
NS_IMETHOD ShowQuality(PRBool aShow) = 0;
|
||||
|
||||
/**
|
||||
* Query whether quality level should be displayed in view frame
|
||||
* @return if PR_TRUE, quality level will be displayed, else hidden
|
||||
*/
|
||||
NS_IMETHOD GetShowQuality(PRBool &aResult) = 0;
|
||||
|
||||
/**
|
||||
* Select quality level
|
||||
* @param aShow if PR_TRUE, quality level will be displayed, else hidden
|
||||
*/
|
||||
NS_IMETHOD SetQuality(nsContentQuality aQuality) = 0;
|
||||
|
||||
/**
|
||||
* prevent the view manager from refreshing.
|
||||
* @return error status
|
||||
|
|
|
@ -207,21 +207,6 @@ NS_IMETHODIMP nsScrollPortView::GetContainerSize(nscoord *aWidth, nscoord *aHeig
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsScrollPortView::ShowQuality(PRBool aShow)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsScrollPortView::GetShowQuality(PRBool &aShow) const
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsScrollPortView::SetQuality(nsContentQuality aQuality)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsScrollPortView::SetScrollPreference(nsScrollPreference aPref)
|
||||
{
|
||||
return NS_OK;
|
||||
|
|
|
@ -66,10 +66,6 @@ public:
|
|||
NS_IMETHOD SetScrolledView(nsIView *aScrolledView);
|
||||
NS_IMETHOD GetScrolledView(nsIView *&aScrolledView) const;
|
||||
|
||||
NS_IMETHOD ShowQuality(PRBool aShow);
|
||||
NS_IMETHOD GetShowQuality(PRBool &aShow) const;
|
||||
NS_IMETHOD SetQuality(nsContentQuality aQuality);
|
||||
|
||||
NS_IMETHOD SetScrollPreference(nsScrollPreference aPref);
|
||||
NS_IMETHOD GetScrollPreference(nsScrollPreference &aScrollPreference) const;
|
||||
NS_IMETHOD GetScrollPosition(nscoord &aX, nscoord &aY) const;
|
||||
|
|
|
@ -3115,30 +3115,6 @@ const nsVoidArray* nsViewManager::GetViewManagerArray()
|
|||
return gViewManagers;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsViewManager::ShowQuality(PRBool aShow)
|
||||
{
|
||||
if (nsnull != mRootScrollable)
|
||||
mRootScrollable->ShowQuality(aShow);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsViewManager::GetShowQuality(PRBool &aResult)
|
||||
{
|
||||
if (nsnull != mRootScrollable)
|
||||
mRootScrollable->GetShowQuality(aResult);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsViewManager::SetQuality(nsContentQuality aQuality)
|
||||
{
|
||||
if (nsnull != mRootScrollable)
|
||||
mRootScrollable->SetQuality(aQuality);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsIRenderingContext * nsViewManager::CreateRenderingContext(nsView &aView)
|
||||
{
|
||||
nsView *par = &aView;
|
||||
|
|
|
@ -186,10 +186,6 @@ public:
|
|||
|
||||
NS_IMETHOD GetDeviceContext(nsIDeviceContext *&aContext);
|
||||
|
||||
NS_IMETHOD ShowQuality(PRBool aShow);
|
||||
NS_IMETHOD GetShowQuality(PRBool &aResult);
|
||||
NS_IMETHOD SetQuality(nsContentQuality aQuality);
|
||||
|
||||
NS_IMETHOD DisableRefresh(void);
|
||||
NS_IMETHOD EnableRefresh(PRUint32 aUpdateFlags);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче