[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/khtml-svg/rendering (silent)
From: Nikolas Zimmermann <wildfox () kde ! org>
Date: 2006-03-30 0:11:51
Message-ID: 1143677511.687270.1995.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 524217 by wildfox:
SVN_SILENT: remove last annoying debug output + some style changes
M +12 -9 render_svg_path.cpp
M +1 -3 render_svg_path.h
--- branches/work/khtml-svg/rendering/render_svg_path.cpp #524216:524217
@@ -21,10 +21,8 @@
Boston, MA 02111-1307, USA.
*/
-#include <kdebug.h>
#include <math.h>
#include <QMatrix>
-#include <QPainterPath>
#include "KCanvasPath.h"
#include "render_svg_path.h"
@@ -73,20 +71,24 @@
QRectF RenderPath::relativeBBox(bool includeStroke) const
{
QRectF result;
- if (!m_path)
+ if(!m_path)
return result;
- if (includeStroke) {
+ if(includeStroke)
+ {
if(!m_strokeBBox.isValid())
m_strokeBBox = bboxForPath(true);
+
result = m_strokeBBox;
- } else {
+ }
+ else
+ {
if(!m_fillBBox.isValid())
m_fillBBox = bboxForPath(false);
+
result = m_fillBBox;
}
- kdDebug() << k_funcinfo << result.height() << endl;
return result;
}
@@ -124,13 +126,14 @@
return static_cast<short>(relativeBBox(true).height());
}
-bool RenderPath::nodeAtPoint(NodeInfo& info, int _x, int _y, int _tx, int _ty, \
HitTestAction hitTestAction, bool) +bool RenderPath::nodeAtPoint(NodeInfo &info, int \
_x, int _y, int _tx, int _ty, HitTestAction hitTestAction, bool) {
// We only draw in the forground phase, so we only hit-test then.
- //if (hitTestAction != HitTestForeground)
+ //if(hitTestAction != HitTestForeground)
// return false;
- if (hitsPath(QPointF(_x, _y), true)) {
+ if(hitsPath(QPointF(_x, _y), true))
+ {
info.setInnerNode(node());
return true;
}
--- branches/work/khtml-svg/rendering/render_svg_path.h #524216:524217
@@ -25,10 +25,8 @@
#define RenderPath_H
#include <QRect>
-#include <QPoint>
-#include <q3valuelist.h>
-#include <QPointF>
#include <QRectF>
+#include <QPointF>
#include "render_object.h"
#include "kcanvas/KCanvasPath.h"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic