summaryrefslogtreecommitdiffstats
path: root/layout/style/nsComputedDOMStyle.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-01 19:32:49 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-01 19:32:49 +0200
commit1f4ce97ecd5fa47eead41e1408d2d26ce50749fa (patch)
treed47291e5471dc98ebf2e4f4d5281d9c3eda15518 /layout/style/nsComputedDOMStyle.cpp
parentdc8aad9b9dc6983bb88aa586f34d9db007840eb8 (diff)
downloadUXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.tar
UXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.tar.gz
UXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.tar.lz
UXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.tar.xz
UXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.zip
moebius#90: CSS - implement text-justify property
Diffstat (limited to 'layout/style/nsComputedDOMStyle.cpp')
-rw-r--r--layout/style/nsComputedDOMStyle.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp
index 4eb24b76b..4f8d3edf6 100644
--- a/layout/style/nsComputedDOMStyle.cpp
+++ b/layout/style/nsComputedDOMStyle.cpp
@@ -3875,6 +3875,16 @@ nsComputedDOMStyle::DoGetTextIndent()
}
already_AddRefed<CSSValue>
+nsComputedDOMStyle::DoGetTextJustify()
+{
+ RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
+ val->SetIdent(
+ nsCSSProps::ValueToKeywordEnum(StyleText()->mTextJustify,
+ nsCSSProps::kTextJustifyKTable));
+ return val.forget();
+}
+
+already_AddRefed<CSSValue>
nsComputedDOMStyle::DoGetTextOrientation()
{
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;