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

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

Issue 2126973004: [Layout API] Use layoutViewItem() in Document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/layout/api/LayoutBlockItem.h ('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 a3d0a0513b464417ccee2d6372608478759dc9f3..83d85a9948d092ea10682fbfc70f07dac7b81da1 100644
--- a/third_party/WebKit/Source/core/layout/api/LayoutItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LayoutItem.h
@@ -178,11 +178,21 @@ public:
return m_layoutObject->styleRef();
}
+ ComputedStyle* mutableStyle() const
+ {
+ return m_layoutObject->mutableStyle();
+ }
+
ComputedStyle& mutableStyleRef() const
{
return m_layoutObject->mutableStyleRef();
}
+ void setStyle(PassRefPtr<ComputedStyle> style)
+ {
+ m_layoutObject->setStyle(style);
+ }
+
LayoutSize offsetFromContainer(const LayoutItem& item) const
{
return m_layoutObject->offsetFromContainer(item.layoutObject());
@@ -243,6 +253,16 @@ public:
m_layoutObject->setNeedsLayoutAndPrefWidthsRecalc(reason);
}
+ bool wasNotifiedOfSubtreeChange() const
+ {
+ return m_layoutObject->wasNotifiedOfSubtreeChange();
+ }
+
+ void handleSubtreeModifications()
+ {
+ m_layoutObject->handleSubtreeModifications();
+ }
+
bool needsOverflowRecalcAfterStyleChange() const
{
return m_layoutObject->needsOverflowRecalcAfterStyleChange();
« no previous file with comments | « third_party/WebKit/Source/core/layout/api/LayoutBlockItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698