-
Webkit을 이용하여 CSS에서 정의된 LonghandProperties 얻어오기...공장 이야기 2011. 9. 8. 10:39
CSS에서 정의된 기본 LonghandProperties 속성을 얻어 온다. 실제 사용되지 않아도 가지고 온다.
String CSSStyleDeclaration::getLonghandProperties(const String& propertyName)
{
int propID = 0;
PassRefPtr<CSSMutableStyleDeclaration> pCSSMSDPropertie;
unsigned nCount = 0;
String strProperties;
int* piProperties = NULL;
int nLoop = 0;propID = cssPropertyID(propertyName);
if (!propID)
return TEXT("");pCSSMSDPropertie = CSSMutableStyleDeclaration::create();
pCSSMSDPropertie->getLonghandProperties(propID, (const int**)&piProperties, (int*)&nCount);
for(nLoop=0; (unsigned)nLoop<nCount; nLoop++)
{
strProperties.append(getPropertyName(static_cast<CSSPropertyID>(piProperties[nLoop])));
strProperties.append(TEXT(":"));
}return strProperties;
}'공장 이야기' 카테고리의 다른 글
Webkit 버그... (0) 2012.01.02 Webkit 빌드 시 error PRJ0019 에러를 낼 때... (0) 2011.12.31 IDOMNode에서 WebCore::Node로 변환하기 (0) 2011.05.04 Windows XP에서 WebKit 빌드 하기 (0) 2011.02.25 Windows Mobile에서 Mouse Hook... (0) 2010.08.13