Bug 1404140 - Rename nsComputedDOMStyle::NeedsToFlush to NeedsToFlushStyle. r=heycam

Differential Revision: https://phabricator.services.mozilla.com/D40295
This commit is contained in:
Emilio Cobos Álvarez 2019-07-31 19:23:41 +02:00
Родитель 405bc1b7e9
Коммит 61e965dfe9
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -766,7 +766,7 @@ void nsComputedDOMStyle::SetFrameComputedStyle(mozilla::ComputedStyle* aStyle,
mPresShellId = mPresShell->GetPresShellId();
}
bool nsComputedDOMStyle::NeedsToFlush() const {
bool nsComputedDOMStyle::NeedsToFlushStyle() const {
// We always compute styles from the element's owner document.
if (ElementNeedsRestyle(mElement, mPseudo)) {
return true;
@ -800,7 +800,7 @@ void nsComputedDOMStyle::UpdateCurrentStyleSources(bool aNeedsLayoutFlush) {
// * https://github.com/w3c/csswg-drafts/issues/1548
// If the property we are computing relies on layout, then we must flush.
const bool needsToFlush = aNeedsLayoutFlush || NeedsToFlush();
const bool needsToFlush = aNeedsLayoutFlush || NeedsToFlushStyle();
if (needsToFlush) {
// Flush _before_ getting the presshell, since that could create a new
// presshell. Also note that we want to flush the style on the document

Просмотреть файл

@ -338,8 +338,8 @@ class nsComputedDOMStyle final : public nsDOMCSSDeclaration,
bool GetFrameBorderRectHeight(nscoord& aHeight);
// Find out if we can safely skip flushing (i.e. pending restyles do not
// affect mElement).
bool NeedsToFlush() const;
// affect our element).
bool NeedsToFlushStyle() const;
static ComputedStyleMap* GetComputedStyleMap();