mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
Backed out changeset 5c974dcdddd7 (bug 1363361) for running and failing browser_windowopen_reflows.js on Windows 8 x64. r=backout
This commit is contained in:
parent
db6237b457
commit
6c82200d23
@ -4441,26 +4441,6 @@ nsDOMWindowUtils::GetDirectionFromText(const nsAString& aString, int32_t* aRetva
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::EnsureDirtyRootFrame()
|
||||
{
|
||||
nsIDocument* doc = GetDocument();
|
||||
nsIPresShell* presShell = doc ? doc->GetShell() : nullptr;
|
||||
|
||||
if (!presShell) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
nsIFrame* frame = presShell->GetRootFrame();
|
||||
if (!frame) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
presShell->FrameNeedsReflow(frame, nsIPresShell::eStyleChange,
|
||||
NS_FRAME_IS_DIRTY);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::GetIsStyledByServo(bool* aStyledByServo)
|
||||
{
|
||||
|
@ -2023,14 +2023,6 @@ interface nsIDOMWindowUtils : nsISupports {
|
||||
*/
|
||||
long getDirectionFromText(in AString aString);
|
||||
|
||||
/**
|
||||
* Calls FrameNeedsReflow on that root frame so that a layout flush
|
||||
* will be necessary.
|
||||
*
|
||||
* This should only be used for testing.
|
||||
*/
|
||||
void ensureDirtyRootFrame();
|
||||
|
||||
/**
|
||||
* Whether the current document is styled by Servo's style engine.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user