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

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

Issue 2332053002: Add DISABLE_CFI_PERF attribute on the methods with CFI checks disabled. (Closed)
Patch Set: LayoutObject, LayoutObjectChildList 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.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 322d0eaeaf0db694a7424746129387abdf3d8067..93faa605e11385fdc050b9774fc473f3662333fb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -245,6 +245,7 @@ public:
LayoutObject* previousSibling() const { return m_previous; }
LayoutObject* nextSibling() const { return m_next; }
+ DISABLE_CFI_PERF
LayoutObject* slowFirstChild() const
{
if (const LayoutObjectChildList* children = virtualChildren())
@@ -357,7 +358,7 @@ public:
// LayoutObject tree manipulation
//////////////////////////////////////////
- virtual bool canHaveChildren() const { return virtualChildren(); }
+ DISABLE_CFI_PERF virtual bool canHaveChildren() const { return virtualChildren(); }
virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const { return true; }
// This function is called whenever a child is inserted under |this|.
@@ -885,7 +886,7 @@ public:
bool hasSubtreeChangeListenerRegistered() const { return m_bitfields.subtreeChangeListenerRegistered(); }
/* This function performs a layout only if one is needed. */
- void layoutIfNeeded()
+ DISABLE_CFI_PERF void layoutIfNeeded()
{
if (needsLayout())
layout();
@@ -2087,6 +2088,7 @@ inline void LayoutObject::invalidateBackgroundObscurationStatus()
m_bitfields.setBackgroundObscurationState(BackgroundObscurationStatusInvalid);
}
+DISABLE_CFI_PERF
inline bool LayoutObject::backgroundIsKnownToBeObscured() const
{
if (m_bitfields.getBackgroundObscurationState() == BackgroundObscurationStatusInvalid) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698