[Webkit-unassigned] [Bug 10362] SVG needs to support SVGError events and some form of "error state"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 5 15:11:55 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=10362


sam at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #12244|review?                     |review-
               Flag|                            |




------- Comment #6 from sam at webkit.org  2007-01-05 15:11 PDT -------
(From update of attachment 12244)
r- for a couple style issues

In Tokenizer.h (I do realize that this is just a copy and paste but we might as
well get it right):

There should not be a trailing underscore.

+#ifndef Tokenizer_h_
+#define Tokenizer_h_

Put the brace on the same line as the class name.

+class Tokenizer
+{

Indent the initialization list and put the braces on two lines.

+    Tokenizer(bool viewSourceMode = false) 
+    : m_parserStopped(false)
+    , m_inViewSourceMode(viewSourceMode)
+    {}

You should also indent the whole class declaration.

Add comments to closing brace and #endif.

+}
+
+#endif


In SVGDocumentExtensions.cpp:

The lines (seen in both reportWarning() and reportError())

+        int lineNumber = 1;
+        if (m_doc->tokenizer())
+            lineNumber =  m_doc->tokenizer()->lineNumber();

could be clearer if written in one line, like:

    int lineNumber = m_doc->tokenizer() ? m_doc->tokenizer()->lineNumber() : 1;

(note that I got rid of the double space :) )


The changes in SVGFitToViewBox.h don't seem to have anything todo with the
patch.


In SVGParserUtilities.h:

As long as you are changing the return value, please fix the &.

+        bool parsePoints(const String &points) const;


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list