From 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 9 Feb 2012 14:16:12 +0100 Subject: Imported WebKit commit e09a82039aa4273ab318b71122e92d8e5f233525 (http://svn.webkit.org/repository/webkit/trunk@107223) --- Source/WebCore/css/CSSComputedStyleDeclaration.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'Source/WebCore/css/CSSComputedStyleDeclaration.cpp') diff --git a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp index 90f98c8d3..d0131eed0 100644 --- a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp +++ b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp @@ -1,6 +1,6 @@ /* * Copyright (C) 2004 Zack Rusin - * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. + * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. * Copyright (C) 2007 Alexey Proskuryakov * Copyright (C) 2007 Nicholas Shanks * Copyright (C) 2011 Sencha, Inc. All rights reserved. @@ -28,7 +28,6 @@ #include "CSSAspectRatioValue.h" #include "CSSBorderImage.h" #include "CSSLineBoxContainValue.h" -#include "CSSMutableStyleDeclaration.h" #include "CSSParser.h" #include "CSSPrimitiveValue.h" #include "CSSPrimitiveValueMappings.h" @@ -58,6 +57,7 @@ #include "RenderLayer.h" #include "RenderStyle.h" #include "ShadowValue.h" +#include "StylePropertySet.h" #if ENABLE(CSS_FILTERS) #include "StyleCustomFilterProgram.h" #include "WebKitCSSFilterValue.h" @@ -668,7 +668,7 @@ static PassRefPtr computedTransform(RenderObject* renderer, const Rend if (!renderer || style->transform().operations().isEmpty()) return cssValuePool->createIdentifierValue(CSSValueNone); - IntRect box = sizingBox(renderer); + LayoutRect box = sizingBox(renderer); TransformationMatrix transform; style->applyTransform(transform, box.size(), RenderStyle::ExcludeTransformOrigin); @@ -2113,7 +2113,7 @@ PassRefPtr CSSComputedStyleDeclaration::getPropertyCSSValue(int proper case CSSPropertyWebkitPerspectiveOrigin: { RefPtr list = CSSValueList::createSpaceSeparated(); if (renderer) { - IntRect box = sizingBox(renderer); + LayoutRect box = sizingBox(renderer); list->append(zoomAdjustedPixelValue(style->perspectiveOriginX().calcMinValue(box.width()), style.get(), cssValuePool)); list->append(zoomAdjustedPixelValue(style->perspectiveOriginY().calcMinValue(box.height()), style.get(), cssValuePool)); } @@ -2514,12 +2514,12 @@ bool CSSComputedStyleDeclaration::cssPropertyMatches(const CSSProperty* property return value && value->cssText() == property->value()->cssText(); } -PassRefPtr CSSComputedStyleDeclaration::copy() const +PassRefPtr CSSComputedStyleDeclaration::copy() const { return copyPropertiesInSet(computedProperties, numComputedProperties); } -PassRefPtr CSSComputedStyleDeclaration::makeMutable() +PassRefPtr CSSComputedStyleDeclaration::makeMutable() { return copy(); } @@ -2562,7 +2562,7 @@ PassRefPtr CSSComputedStyleDeclaration::getCSSPropertyValuesForSid return list.release(); } -PassRefPtr CSSComputedStyleDeclaration::copyPropertiesInSet(const int* set, unsigned length) const +PassRefPtr CSSComputedStyleDeclaration::copyPropertiesInSet(const int* set, unsigned length) const { Vector list; list.reserveInitialCapacity(length); @@ -2571,7 +2571,12 @@ PassRefPtr CSSComputedStyleDeclaration::copyProperti if (value) list.append(CSSProperty(set[i], value.release(), false)); } - return CSSMutableStyleDeclaration::create(list); + return StylePropertySet::create(list); +} + +CSSRule* CSSComputedStyleDeclaration::parentRule() const +{ + return 0; } PassRefPtr CSSComputedStyleDeclaration::getPropertyCSSValue(const String& propertyName) -- cgit v1.2.1