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

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

Issue 2289353002: [layoutng] Add methods to compute border and padding (Closed)
Patch Set: better enum name Created 4 years, 4 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_length_utils.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_length_utils.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h
index 2491d172911bb4f018adc7798eee59b740785e21..ee849bb8601aca97f0cb9ddc7706b216dacca5ba 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h
@@ -14,7 +14,12 @@ class Length;
class NGConstraintSpace;
struct NGBoxStrut;
-enum class LengthResolveType { MinSize, MaxSize, ContentSize, MarginSize };
+enum class LengthResolveType {
+ MinSize,
+ MaxSize,
+ ContentSize,
+ MarginBorderPaddingSize
+};
#define NGSizeIndefinite LayoutUnit(-1)
@@ -47,6 +52,11 @@ CORE_EXPORT LayoutUnit computeBlockSizeForFragment(const NGConstraintSpace&,
CORE_EXPORT NGBoxStrut computeMargins(const NGConstraintSpace&,
const ComputedStyle&);
+CORE_EXPORT NGBoxStrut computeBorders(const ComputedStyle&);
+
+CORE_EXPORT NGBoxStrut computePadding(const NGConstraintSpace&,
+ const ComputedStyle&);
+
} // namespace blink
#endif // NGLengthUtils_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698