[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
kocienda
kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:35:18 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 6eee50d8624e07c134f85696ff0e44b62c6679fa
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Apr 21 16:47:37 2004 +0000
Reviewed by Hyatt
* khtml/css/css_computedstyle.cpp:
(DOM::CSSComputedStyleDeclarationImpl::getPropertyCSSValue): Added implementations for
these properties: CSS_PROP_TEXT_DECORATION, CSS_PROP_VERTICAL_ALIGN, CSS_PROP_TEXT_INDENT,
CSS_PROP_LETTER_SPACING, CSS_PROP_WORD_SPACING, CSS_PROP_LINE_HEIGHT
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index f29b8aa..5035a86 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,14 @@
2004-04-21 Ken Kocienda <kocienda at apple.com>
+ Reviewed by Hyatt
+
+ * khtml/css/css_computedstyle.cpp:
+ (DOM::CSSComputedStyleDeclarationImpl::getPropertyCSSValue): Added implementations for
+ these properties: CSS_PROP_TEXT_DECORATION, CSS_PROP_VERTICAL_ALIGN, CSS_PROP_TEXT_INDENT,
+ CSS_PROP_LETTER_SPACING, CSS_PROP_WORD_SPACING, CSS_PROP_LINE_HEIGHT
+
+2004-04-21 Ken Kocienda <kocienda at apple.com>
+
Reviewed by John
The Selection class now uses the Position class throughout its public and
diff --git a/WebCore/WebCore.pbproj/project.pbxproj b/WebCore/WebCore.pbproj/project.pbxproj
index 620da5c..7e8aa2f 100644
--- a/WebCore/WebCore.pbproj/project.pbxproj
+++ b/WebCore/WebCore.pbproj/project.pbxproj
@@ -862,7 +862,7 @@
isa = PBXShellScriptBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "#if [ -f ../Tools/Scripts/embed-into-alex ]; then sh ../Tools/Scripts/embed-into-alex; fi";
+ shellScript = "if [ -f ../Tools/Scripts/embed-into-alex ]; then sh ../Tools/Scripts/embed-into-alex; fi";
};
//250
//251
diff --git a/WebCore/khtml/css/css_computedstyle.cpp b/WebCore/khtml/css/css_computedstyle.cpp
index c5b7189..e8b8aa6 100644
--- a/WebCore/khtml/css/css_computedstyle.cpp
+++ b/WebCore/khtml/css/css_computedstyle.cpp
@@ -386,11 +386,19 @@ CSSValueImpl *CSSComputedStyleDeclarationImpl::getPropertyCSSValue(int propertyI
// FIXME: unimplemented
break;
case CSS_PROP_LETTER_SPACING:
- // FIXME: unimplemented
- break;
- case CSS_PROP_LINE_HEIGHT:
- // FIXME: unimplemented
- break;
+ if (m_renderer->style()->letterSpacing() == 0)
+ return new CSSPrimitiveValueImpl("normal", CSSPrimitiveValue::CSS_STRING);
+ return new CSSPrimitiveValueImpl(m_renderer->style()->letterSpacing(), CSSPrimitiveValue::CSS_PX);
+ case CSS_PROP_LINE_HEIGHT: {
+ Length length(m_renderer->style()->lineHeight());
+ if (length.isPercent()) {
+ float computedSize = m_renderer->style()->htmlFont().getFontDef().computedSize;
+ return new CSSPrimitiveValueImpl((int)(length.length() * computedSize) / 100, CSSPrimitiveValue::CSS_PX);
+ }
+ else {
+ return new CSSPrimitiveValueImpl(length.length(), CSSPrimitiveValue::CSS_PX);
+ }
+ }
case CSS_PROP_LIST_STYLE_IMAGE:
// FIXME: unimplemented
break;
@@ -516,14 +524,34 @@ CSSValueImpl *CSSComputedStyleDeclarationImpl::getPropertyCSSValue(int propertyI
case CSS_PROP_TEXT_ALIGN:
return new CSSPrimitiveValueImpl(stringForTextAlign(m_renderer->style()->textAlign()), CSSPrimitiveValue::CSS_STRING);
case CSS_PROP_TEXT_DECORATION:
- // FIXME: unimplemented
- break;
+ {
+ QString string;
+ if (m_renderer->style()->textDecoration() & khtml::UNDERLINE)
+ string += "underline";
+ if (m_renderer->style()->textDecoration() & khtml::OVERLINE) {
+ if (string.length() > 0)
+ string += " ";
+ string += "overline";
+ }
+ if (m_renderer->style()->textDecoration() & khtml::LINE_THROUGH) {
+ if (string.length() > 0)
+ string += " ";
+ string += "line-through";
+ }
+ if (m_renderer->style()->textDecoration() & khtml::BLINK) {
+ if (string.length() > 0)
+ string += " ";
+ string += "blink";
+ }
+ if (string.length() == 0)
+ string = "none";
+ return new CSSPrimitiveValueImpl(string, CSSPrimitiveValue::CSS_STRING);
+ }
case CSS_PROP_TEXT_DECORATION_COLOR:
// FIXME: unimplemented
break;
case CSS_PROP_TEXT_INDENT:
- // FIXME: unimplemented
- break;
+ return valueForLength(m_renderer->style()->textIndent(), m_renderer->contentWidth());
case CSS_PROP_TEXT_SHADOW:
// FIXME: unimplemented
break;
@@ -537,8 +565,30 @@ CSSValueImpl *CSSComputedStyleDeclarationImpl::getPropertyCSSValue(int propertyI
// FIXME: unimplemented
break;
case CSS_PROP_VERTICAL_ALIGN:
- // FIXME: unimplemented
- break;
+ {
+ switch (m_renderer->style()->verticalAlign()) {
+ case khtml::BASELINE:
+ return new CSSPrimitiveValueImpl("baseline", CSSPrimitiveValue::CSS_STRING);
+ case khtml::MIDDLE:
+ return new CSSPrimitiveValueImpl("middle", CSSPrimitiveValue::CSS_STRING);
+ case khtml::SUB:
+ return new CSSPrimitiveValueImpl("sub", CSSPrimitiveValue::CSS_STRING);
+ case khtml::SUPER:
+ return new CSSPrimitiveValueImpl("super", CSSPrimitiveValue::CSS_STRING);
+ case khtml::TEXT_TOP:
+ return new CSSPrimitiveValueImpl("text-top", CSSPrimitiveValue::CSS_STRING);
+ case khtml::TEXT_BOTTOM:
+ return new CSSPrimitiveValueImpl("text-bottom", CSSPrimitiveValue::CSS_STRING);
+ case khtml::TOP:
+ return new CSSPrimitiveValueImpl("top", CSSPrimitiveValue::CSS_STRING);
+ case khtml::BOTTOM:
+ return new CSSPrimitiveValueImpl("bottom", CSSPrimitiveValue::CSS_STRING);
+ case khtml::BASELINE_MIDDLE:
+ return new CSSPrimitiveValueImpl("baseline-middle", CSSPrimitiveValue::CSS_STRING);
+ case khtml::LENGTH:
+ return valueForLength(m_renderer->style()->verticalAlignLength(), m_renderer->contentWidth());
+ }
+ }
case CSS_PROP_VISIBILITY:
// FIXME: unimplemented
break;
@@ -561,8 +611,7 @@ CSSValueImpl *CSSComputedStyleDeclarationImpl::getPropertyCSSValue(int propertyI
case CSS_PROP_WIDTH:
return new CSSPrimitiveValueImpl(m_renderer->contentWidth(), CSSPrimitiveValue::CSS_PX);
case CSS_PROP_WORD_SPACING:
- // FIXME: unimplemented
- break;
+ return new CSSPrimitiveValueImpl(m_renderer->style()->wordSpacing(), CSSPrimitiveValue::CSS_PX);
case CSS_PROP_Z_INDEX:
// FIXME: unimplemented
break;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list