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

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

Issue 2874413003: 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 1e210c4bf3559caae4f3e7d5ae6361d6f53ce8ab..6fc7eaf0fcc08f4ddbb190e76eb3fb7238d60fc2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
@@ -125,6 +125,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 {
@@ -138,6 +142,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