Skip to content

Commit

Permalink
Backed out changeset b2f02ad2c82b (bug 1363361) for frequently failin…
Browse files Browse the repository at this point in the history
…g browser_appmenu_reflows.js on OS X. r=backout a=backout

MozReview-Commit-ID: 5wPiUAKmDhi
  • Loading branch information
Archaeopteryx committed Jul 20, 2017
1 parent 5a3db8f commit d984fbf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
20 changes: 0 additions & 20 deletions dom/base/nsDOMWindowUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
8 changes: 0 additions & 8 deletions dom/interfaces/base/nsIDOMWindowUtils.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit d984fbf

Please sign in to comment.