зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1404140 - Rename nsComputedDOMStyle::NeedsToFlush to NeedsToFlushStyle. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40295
This commit is contained in:
Родитель
405bc1b7e9
Коммит
61e965dfe9
|
@ -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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче