summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-06-26 22:16:12 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-06-26 23:15:03 +0200
commit9951ffedd6941234447b9655fbc49ed6ca4cc64c (patch)
tree6bd1034aa6888b6c48a5ba6b4714a5736064ba83 /basegfx
parent1be3ab048d417611055a76d1776a0a69eb6fc6dd (diff)
Revert "tdf#132246, tdf#155735: Add support for SourceAlpha"
This reverts commit 75399b8aad6c0f0998b9d0a6eddb2e29f8bc114c. it was incomplete. While at it, do not parse 'in' attribute for now, so only in="SourceGraphic" is used. Implementing the 'in' attribute is not trivial Change-Id: I66c721c1144638f5e3759e0aa3a1c2c062499a90 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153627 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/color/bcolormodifier.cxx19
-rwxr-xr-xbasegfx/test/BColorModifierTest.cxx27
2 files changed, 0 insertions, 46 deletions
diff --git a/basegfx/source/color/bcolormodifier.cxx b/basegfx/source/color/bcolormodifier.cxx
index 1ed19a4003eb..9c9a196bb7f8 100644
--- a/basegfx/source/color/bcolormodifier.cxx
+++ b/basegfx/source/color/bcolormodifier.cxx
@@ -69,25 +69,6 @@ namespace basegfx
return "invert";
}
- BColorModifier_alpha::~BColorModifier_alpha()
- {
- }
-
- bool BColorModifier_alpha::operator==(const BColorModifier& rCompare) const
- {
- return dynamic_cast< const BColorModifier_alpha* >(&rCompare) != nullptr;
- }
-
- ::basegfx::BColor BColorModifier_alpha::getModifiedColor(const ::basegfx::BColor& /*aSourceColor*/) const
- {
- return ::basegfx::BColor(0.0, 0.0, 0.0);
- }
-
- OUString BColorModifier_alpha::getModifierName() const
- {
- return "alpha";
- }
-
BColorModifier_luminance_to_alpha::~BColorModifier_luminance_to_alpha()
{
}
diff --git a/basegfx/test/BColorModifierTest.cxx b/basegfx/test/BColorModifierTest.cxx
index 5ada0a33ddf9..3a08958018da 100755
--- a/basegfx/test/BColorModifierTest.cxx
+++ b/basegfx/test/BColorModifierTest.cxx
@@ -389,32 +389,6 @@ public:
CPPUNIT_ASSERT(aBColorModifier->operator==(*aBColorModifier2));
}
- void testAlpha()
- {
- const basegfx::BColorModifierSharedPtr aBColorModifier
- = std::make_shared<basegfx::BColorModifier_alpha>();
-
- CPPUNIT_ASSERT_EQUAL(maBlack, aBColorModifier->getModifiedColor(maWhite));
- CPPUNIT_ASSERT_EQUAL(maBlack, aBColorModifier->getModifiedColor(maGray));
- CPPUNIT_ASSERT_EQUAL(maBlack, aBColorModifier->getModifiedColor(maBlack));
-
- CPPUNIT_ASSERT_EQUAL(maBlack, aBColorModifier->getModifiedColor(maRed));
- CPPUNIT_ASSERT_EQUAL(maBlack, aBColorModifier->getModifiedColor(maGreen));
- CPPUNIT_ASSERT_EQUAL(maBlack, aBColorModifier->getModifiedColor(maBlue));
- CPPUNIT_ASSERT_EQUAL(maBlack, aBColorModifier->getModifiedColor(maYellow));
- CPPUNIT_ASSERT_EQUAL(maBlack, aBColorModifier->getModifiedColor(maMagenta));
- CPPUNIT_ASSERT_EQUAL(maBlack, aBColorModifier->getModifiedColor(maCyan));
-
- CPPUNIT_ASSERT(aBColorModifier->operator==(*aBColorModifier));
- const basegfx::BColorModifierSharedPtr aBColorModifierInvert
- = std::make_shared<basegfx::BColorModifier_invert>();
- CPPUNIT_ASSERT(*aBColorModifier != *aBColorModifierInvert);
-
- const basegfx::BColorModifierSharedPtr aBColorModifier2
- = std::make_shared<basegfx::BColorModifier_alpha>();
- CPPUNIT_ASSERT(aBColorModifier->operator==(*aBColorModifier2));
- }
-
CPPUNIT_TEST_SUITE(bcolormodifier);
CPPUNIT_TEST(testGray);
CPPUNIT_TEST(testInvert);
@@ -426,7 +400,6 @@ public:
CPPUNIT_TEST(testMatrix);
CPPUNIT_TEST(testIdentityMatrix);
CPPUNIT_TEST(testBlackAndWhite);
- CPPUNIT_TEST(testAlpha);
CPPUNIT_TEST_SUITE_END();
};