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

Unified Diff: third_party/WebKit/Source/core/dom/Text.cpp

Issue 2939933002: Only call TextChanged on existing AXObjects (Closed)
Patch Set: Update test expectation Created 3 years, 6 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/dom/Text.cpp
diff --git a/third_party/WebKit/Source/core/dom/Text.cpp b/third_party/WebKit/Source/core/dom/Text.cpp
index 776feb3390df5d229687e800970e533510e22a93..09e391a059a668ae763dc4a898fe20c2b6676a55 100644
--- a/third_party/WebKit/Source/core/dom/Text.cpp
+++ b/third_party/WebKit/Source/core/dom/Text.cpp
@@ -31,7 +31,6 @@
#include "core/dom/LayoutTreeBuilderTraversal.h"
#include "core/dom/NodeComputedStyle.h"
#include "core/dom/NodeTraversal.h"
-#include "core/dom/shadow/ElementShadow.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/events/ScopedEventQueue.h"
#include "core/layout/LayoutText.h"
@@ -447,11 +446,6 @@ static bool ShouldUpdateLayoutByReattaching(const Text& text_node,
*text_layout_object->Parent())) {
return true;
}
- // Check whether this node may be about to be redistributed.
- if (text_node.ParentElementShadow() &&
- text_node.ParentElementShadow()->NeedsDistributionRecalc()) {
- return true;
- }
if (text_layout_object->IsTextFragment()) {
// Changes of |textNode| may change first letter part, so we should
// reattach.

Powered by Google App Engine
This is Rietveld 408576698