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

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

Issue 2890013002: LayoutMenuList::ControlClipRect may depend on size of children (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
index b61f73cdce319771da30e544d7ffba76b093f437..85237ea5739132dd12a305b11674f45de7d65867 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
@@ -124,6 +124,10 @@ void LayoutMenuList::AdjustInnerStyle() {
inner_style.SetDirection(option_style_->Direction());
inner_style.SetUnicodeBidi(option_style_->GetUnicodeBidi());
}
+
+ // LayoutMenuList::ControlClipRect() depends on inner_block_->ContentsSize().
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
+ SetNeedsPaintPropertyUpdate();
}
HTMLSelectElement* LayoutMenuList::SelectElement() const {
@@ -137,6 +141,10 @@ void LayoutMenuList::AddChild(LayoutObject* new_child,
if (AXObjectCache* cache = GetDocument().ExistingAXObjectCache())
cache->ChildrenChanged(this);
+
+ // LayoutMenuList::ControlClipRect() depends on inner_block_->ContentsSize().
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
+ SetNeedsPaintPropertyUpdate();
}
void LayoutMenuList::RemoveChild(LayoutObject* old_child) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698