Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 1816103002: Clear baseComputedStyle when text-autosizing changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 051799571158e80164251832a3a2a3e5358c8d66..fd77fad810a9a644e0b05a2d5980b7cb293f839a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -27,6 +27,7 @@
#include "core/layout/LayoutObject.h"
#include "core/HTMLNames.h"
+#include "core/animation/ElementAnimations.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/AXObjectCache.h"
#include "core/dom/ElementTraversal.h"
@@ -2072,6 +2073,16 @@ void LayoutObject::styleWillChange(StyleDifference diff, const ComputedStyle& ne
}
}
+void LayoutObject::clearBaseComputedStyle()
+{
+ if (!node())
+ return;
+ if (!node()->isElementNode())
+ return;
+ if (ElementAnimations* animations = toElement(node())->elementAnimations())
+ animations->clearBaseComputedStyle();
+}
+
static bool areNonIdenticalCursorListsEqual(const ComputedStyle* a, const ComputedStyle* b)
{
ASSERT(a->cursors() != b->cursors());
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698