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

Unified Diff: third_party/WebKit/Source/core/layout/api/LayoutItem.h

Issue 2367253005: [Layout API] Use ownerLayoutItem in forceLayoutParentViewIfNeeded() (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/api/LayoutItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LayoutItem.h b/third_party/WebKit/Source/core/layout/api/LayoutItem.h
index 7236737d2e1fc9a1ebd9bc1018dc54b248ad4da5..cde7c949c6c75473cda579dd834a748a2fa0e281 100644
--- a/third_party/WebKit/Source/core/layout/api/LayoutItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LayoutItem.h
@@ -14,6 +14,7 @@ namespace blink {
class FrameView;
class LayoutAPIShim;
+class LocalFrame;
class LayoutViewItem;
class Node;
class ObjectPaintProperties;
@@ -140,11 +141,6 @@ public:
return m_layoutObject->needsLayout();
}
- void setNeedsLayout(LayoutInvalidationReasonForTracing reason, MarkingBehavior marking = MarkContainerChain, SubtreeLayoutScope* scope = nullptr)
- {
- m_layoutObject->setNeedsLayout(reason, marking, scope);
- }
-
void layout()
{
m_layoutObject->layout();
@@ -165,6 +161,11 @@ public:
return m_layoutObject->document();
}
+ LocalFrame* frame() const
+ {
+ return m_layoutObject->frame();
+ }
+
LayoutItem nextInPreOrder() const
{
return LayoutItem(m_layoutObject->nextInPreOrder());
@@ -207,11 +208,6 @@ public:
return m_layoutObject->document().view();
}
- void setMayNeedPaintInvalidation()
- {
- m_layoutObject->setMayNeedPaintInvalidation();
- }
-
const ComputedStyle* style() const
{
return m_layoutObject->style();
@@ -227,6 +223,31 @@ public:
return m_layoutObject->hasLayer();
}
+ void setNeedsLayout(LayoutInvalidationReasonForTracing reason, MarkingBehavior marking = MarkContainerChain, SubtreeLayoutScope* scope = nullptr)
+ {
+ m_layoutObject->setNeedsLayout(reason, marking, scope);
+ }
+
+ void setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReasonForTracing reason, MarkingBehavior behavior = MarkContainerChain, SubtreeLayoutScope* scope = nullptr)
+ {
+ m_layoutObject->setNeedsLayoutAndFullPaintInvalidation(reason, behavior, scope);
+ }
+
+ void setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReasonForTracing reason)
+ {
+ m_layoutObject->setNeedsLayoutAndPrefWidthsRecalc(reason);
+ }
+
+ void setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReasonForTracing reason)
+ {
+ m_layoutObject->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(reason);
+ }
+
+ void setMayNeedPaintInvalidation()
+ {
+ m_layoutObject->setMayNeedPaintInvalidation();
+ }
+
void setShouldDoFullPaintInvalidation(PaintInvalidationReason reason = PaintInvalidationFull)
{
m_layoutObject->setShouldDoFullPaintInvalidation(reason);
@@ -252,16 +273,6 @@ public:
return m_layoutObject->absoluteToLocal(point, mode);
}
- void setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReasonForTracing reason, MarkingBehavior behavior = MarkContainerChain, SubtreeLayoutScope* scope = nullptr)
- {
- m_layoutObject->setNeedsLayoutAndFullPaintInvalidation(reason, behavior, scope);
- }
-
- void setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReasonForTracing reason)
- {
- m_layoutObject->setNeedsLayoutAndPrefWidthsRecalc(reason);
- }
-
bool wasNotifiedOfSubtreeChange() const
{
return m_layoutObject->wasNotifiedOfSubtreeChange();
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698