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

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

Issue 2242773003: Revert of ResizeObserver pt6: integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 2f7d9e9e1065d14c5d1857d4b7761377607469c0..bfa8daeabf98e24ca0b10994f63097df39737ca2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -1543,18 +1543,6 @@
if (!screenRect.isEmpty() && isVisible)
screenArea = static_cast<uint32_t>(screenRect.width() * screenRect.height());
return ResourcePriority(isVisible ? ResourcePriority::Visible : ResourcePriority::NotVisible, screenArea);
-}
-
-void LayoutBox::frameRectChanged()
-{
- if (node() && node()->isElementNode()) {
- Element& element = toElement(*node());
- element.setNeedsResizeObserverUpdate();
- }
- // The frame rect may change because of layout of other objects.
- // Should check this object for paint invalidation.
- if (!needsLayout())
- setMayNeedPaintInvalidation();
}
bool LayoutBox::intersectsVisibleViewport() const
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698