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

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

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Send over for review Created 4 years, 3 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 86d1e889b5fd5bd972f422ba3ca92380bb70160f..0522d54aebe099a891451fea9f5644672f865535 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1563,6 +1563,14 @@ void LayoutObject::setNeedsOverflowRecalcAfterStyleChange()
markAncestorsForOverflowRecalcIfNeeded();
}
+void LayoutObject::setStyleFromNodeOrElement(PassRefPtr<ComputedStyle> computedStyle)
Bugs Nash 2016/09/16 01:45:04 method name should describe what it does, not wher
+{
+ if (m_style->hasImage() || computedStyle->hasImage() || isImage() || isVideo())
+ setStyle(std::move(computedStyle));
+ else
+ setStyleInternal(std::move(computedStyle));
+}
+
DISABLE_CFI_PERF
void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style)
{
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698