-
antti@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=76904 Reviewed by Andreas Kling. Internally WebCore should use the more specific CSSMutableStyleDeclaration and CSSComputedStyleDeclaration types. The CSSStyleDeclaration base should be used in the DOM API functions only. This will make it easier to separate internal style sheet implementation from the DOM in the future. - Switch CSSStyleDeclaration -> CSSMutableStyleDeclaration where feasible - Use StyledElement::ensureInlineStyleDecl() instead of Element::style() (which is a DOM API function) - Remove Attribute::style() which looks like a DOM API function but is not exposed. * css/CSSMutableStyleDeclaration.h: (WebCore::CSSMutableStyleDeclaration::getPropertyCSSValue): * dom/Attr.h: (WebCore::Attr::style): * dom/Attribute.h: * editing/EditingStyle.cpp: (WebCore::HTMLElementEquivalent::propertyExistsInStyle): (WebCore::HTMLElementEquivalent::valueIsPresentInStyle): (WebCore::HTMLTextDecorationEquivalent::propertyExistsInStyle): (WebCore::HTMLTextDecorationEquivalent::valueIsPresentInStyle): (WebCore::HTMLAttributeEquivalent::valueIsPresentInStyle): * editing/Editor.cpp: (WebCore::Editor::applyEditingStyleToElement): * editing/markup.cpp: (WebCore::StyledMarkupAccumulator::wrapWithStyleNode): (WebCore::StyledMarkupAccumulator::appendStyleNodeOpenTag): (WebCore::propertyMissingOrEqualToNone): * inspector/InspectorCSSAgent.cpp: (WebCore::InspectorCSSAgent::buildArrayForAttributeStyles): * page/DragController.cpp: (WebCore::DragController::concludeEditDrag): * page/PageSerializer.cpp: (WebCore::PageSerializer::serializeFrame): (WebCore::PageSerializer::retrieveResourcesForCSSDeclaration): * page/PageSerializer.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::resize): * svg/SVGStyledElement.cpp: (WebCore::SVGStyledElement::getPresentationAttribute): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
041461b1