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

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

Issue 2347773002: [LayoutNG] Fix broken layout while using CSS's writing modes. (Closed)
Patch Set: synced to the head 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
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 e8ac361dc4eb73424f1a4a1bf59a364939e12f2c..f5285dc6f2af80089773d9116f80a1167eb9c148 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
@@ -6,6 +6,8 @@
#define NGLengthUtils_h
#include "core/CoreExport.h"
+#include "core/layout/ng/ng_direction.h"
+#include "core/layout/ng/ng_writing_mode.h"
namespace blink {
class ComputedStyle;
@@ -52,7 +54,9 @@ CORE_EXPORT LayoutUnit computeBlockSizeForFragment(const NGConstraintSpace&,
LayoutUnit contentSize);
CORE_EXPORT NGBoxStrut computeMargins(const NGConstraintSpace&,
- const ComputedStyle&);
+ const ComputedStyle&,
+ const NGWritingMode writing_mode,
+ const NGDirection direction);
CORE_EXPORT NGBoxStrut computeBorders(const ComputedStyle&);

Powered by Google App Engine
This is Rietveld 408576698