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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h

Issue 2717403002: Add Style() to PhysicalFragment (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698