Fabric: Fix CXX Stub for TextLayoutManager (#27948)

Summary:
This pull request fixes the CXX stub for `TextLayoutManager`. The signature for `TextLayoutManager::measure` changed slightly, and this patch updates the stub to reflect that.

## Changelog

[Internal] [Fixed] - Fabric: Fix CXX Stub for TextLayoutManager
Pull Request resolved: https://github.com/facebook/react-native/pull/27948

Test Plan: Fabric compiles, and the Fabric test suite passes.

Reviewed By: shergin

Differential Revision: D19788207

Pulled By: sammy-SC

fbshipit-source-id: 8f42cca0be99022b038742728ad4fec6c04d5cf0
This commit is contained in:
empyrical
2020-02-10 04:15:11 -08:00
committed by Facebook Github Bot
parent 91540d74b1
commit 37f012c04e
2 changed files with 4 additions and 3 deletions
@@ -17,7 +17,7 @@ void *TextLayoutManager::getNativeTextLayoutManager() const {
}
Size TextLayoutManager::measure(
AttributedString attributedString,
AttributedStringBox attributedStringBox,
ParagraphAttributes paragraphAttributes,
LayoutConstraints layoutConstraints) const {
return Size{0, 0};
@@ -10,6 +10,7 @@
#include <memory>
#include <react/attributedstring/AttributedString.h>
#include <react/attributedstring/AttributedStringBox.h>
#include <react/attributedstring/ParagraphAttributes.h>
#include <react/core/LayoutConstraints.h>
#include <react/utils/ContextContainer.h>
@@ -31,10 +32,10 @@ class TextLayoutManager {
~TextLayoutManager();
/*
* Measures `attributedString` using native text rendering infrastructure.
* Measures `attributedStringBox` using native text rendering infrastructure.
*/
Size measure(
AttributedString attributedString,
AttributedStringBox attributedStringBox,
ParagraphAttributes paragraphAttributes,
LayoutConstraints layoutConstraints) const;