Index: third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
index 2d014c50f6b72a3384905ae00a27bb834b8f4765..5899531685560886fbf6bf0ad5b8638ca865d61c 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
@@ -13,6 +13,7 @@ |
namespace blink { |
+class ComputedStyle; |
class LayoutObject; |
class NGBreakToken; |
@@ -78,6 +79,10 @@ class CORE_EXPORT NGPhysicalFragment : public RefCounted<NGPhysicalFragment> { |
NGBreakToken* BreakToken() const { return break_token_; } |
+ const ComputedStyle& Style() const; |
+ |
+ // GetLayoutObject should only be used when necessary for compatibility |
+ // with LegacyLayout. |
LayoutObject* GetLayoutObject() const { return layout_object_; } |
bool IsPlaced() const { return is_placed_; } |