Commit faf82c6d authored by bdash's avatar bdash
Browse files

2006-09-26 Graham Dennis <graham.dennis@gmail.com>

        Reviewed by mitzpettel.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=11020
        No-SVG build broken since r16549
        
        Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT

        * css/cssparser.cpp:
        (WebCore::CSSParser::parseValue):
        * css/cssstyleselector.cpp:
        (WebCore::CSSStyleSelector::applyProperty):
        * page/FrameView.cpp:
        (WebCore::selectCursor):
        * platform/qt/GraphicsContextQt.cpp:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16571 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e5cdf9d8
2006-09-26 Graham Dennis <graham.dennis@gmail.com>
Reviewed by mitzpettel.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=11020
No-SVG build broken since r16549
Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
* css/cssparser.cpp:
(WebCore::CSSParser::parseValue):
* css/cssstyleselector.cpp:
(WebCore::CSSStyleSelector::applyProperty):
* page/FrameView.cpp:
(WebCore::selectCursor):
* platform/qt/GraphicsContextQt.cpp:
2006-09-26 Anders Carlsson <acarlsson@apple.com>
 
Reviewed by Maciej.
......@@ -718,7 +718,7 @@ bool CSSParser::parseValue(int propId, bool important)
} else if(strict && nrcoords == 2)
hotspot = IntPoint(coords[0], coords[1]);
if (strict || coords.size() == 0) {
#if SVG_SUPPORT
#ifdef SVG_SUPPORT
if (uri.startsWith("#")) {
if (!list)
list = new CSSValueList;
......
......@@ -2440,7 +2440,7 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value)
primitiveValue = static_cast<CSSPrimitiveValue*>(item);
int type = primitiveValue->primitiveType();
if (type == CSSPrimitiveValue::CSS_URI) {
#if SVG_SUPPORT
#ifdef SVG_SUPPORT
if (primitiveValue->getStringValue().find("#") == 0)
style->addSVGCursor(primitiveValue->getStringValue().substring(1));
else
......
......@@ -48,7 +48,7 @@
#include "SelectionController.h"
#include "cssstyleselector.h"
#if SVG_SUPPORT
#ifdef SVG_SUPPORT
#include "XLinkNames.h"
#include "SVGNames.h"
#include "SVGCursorElement.h"
......@@ -59,7 +59,7 @@ namespace WebCore {
using namespace EventNames;
using namespace HTMLNames;
#if SVG_SUPPORT
#ifdef SVG_SUPPORT
using namespace SVGNames;
#endif
......@@ -661,7 +661,7 @@ static Cursor selectCursor(const MouseEventWithHitTestResults& event, Frame* fra
for (unsigned i = 0; i < cursors->size(); ++i) {
CachedImage* cimage = (*cursors)[i].cursorImage;
IntPoint hotSpot = (*cursors)[i].hotSpot;
#if SVG_SUPPORT
#ifdef SVG_SUPPORT
if (!cimage) {
Element* e = node->document()->getElementById((*cursors)[i].cursorFragmentId);
if (e && e->hasTagName(cursorTag)) {
......
......@@ -46,7 +46,7 @@
#define M_PI 3.14159265358979323846
#endif
#if SVG_SUPPORT
#ifdef SVG_SUPPORT
#include "KRenderingDeviceQt.h"
#endif
......@@ -777,7 +777,7 @@ void GraphicsContext::concatCTM(const AffineTransform& transform)
m_data->p().setMatrix(transform, true);
}
#if SVG_SUPPORT
#ifdef SVG_SUPPORT
KRenderingDeviceContext* GraphicsContext::createRenderingDeviceContext()
{
return new KRenderingDeviceContextQt(platformContext());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment