Changeset 1024 in webkit for trunk/JavaScriptCore/kjs/nodes.h


Ignore:
Timestamp:
Apr 15, 2002, 4:43:21 PM (23 years ago)
Author:
darin
Message:

Merged KDE 3.0 final code in and:

JavaScriptCore:

  • kjs/internal.cpp:
  • kjs/property_map.cpp:
  • kjs/ustring.h: Removed some unneeded <config.h> includes so we are more similar to the real KDE sources.

Merged changes from KDE 3.0 final and did some build fixes.

  • kjs/grammar.*: Regenerated.
  • kjs/*.lut.h: Regenerated.

WebCore:

  • src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration): Remove some minor gratuitous diffs vs. KDE.
  • src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration): Richard updated to reflect changes in KDE.
  • src/kdelibs/khtml/css/css_valueimpl.cpp: (FontFamilyValueImpl::FontFamilyValueImpl): Fix comment.
  • src/kdelibs/khtml/css/cssstyleselector.cpp: Remove some gratuitous diffs vs. KDE.
  • src/kdelibs/khtml/html/html_objectimpl.cpp: (HTMLEmbedElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days.
  • src/kdelibs/khtml/html/html_tableimpl.cpp: (HTMLTableElementImpl::parseAttribute), (HTMLTablePartElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days.
  • src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::processToken): Redo the APPLE_CHANGES ifdef here.
  • src/kdelibs/khtml/khtmlpart_p.h: Update to latest kde.
  • src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::KHTMLView): Add ifdef APPLE_CHANGES. (KHTMLView::~KHTMLView): Add ifdef APPLE_CHANGES. (KHTMLView::print): Remove code left in here during merge process.
  • src/kwq/KWQKHTMLPart.mm: Remove unused setFontSizes(), fontSizes(), and resetFontSizes(). After the merge is landed, remove more.
  • src/libwebcore.exp: Export updateStyleSelector() for WebKit.

Fix text to it displays at the right font size.

  • src/kdelibs/khtml/css/cssstyleselector.cpp: (CSSStyleSelector::computeFontSizes): Apply the same SCREEN_RESOLUTION hack here that we do elsewhere.
  • src/kdelibs/khtml/rendering/font.cpp: (Font::width): Use kMin instead of max (oops). (Font::update): Turn off font database chicanery.
  • src/kwq/KWQKHTMLPart.mm: (KHTMLPart::zoomFactor): Use zoom factor 100, not 1.

More fixes so text displays (still at wrong font size).

  • src/kdelibs/khtml/rendering/font.cpp: (max): New helper. (Font::drawText): Simplified implementation for now. (Font::width): Simplified implementation for now.
  • src/kwq/KWQColorGroup.mm: Reinstated QCOLOR_GROUP_SIZE.
  • src/kwq/qt/qfontmetrics.h: Removed charWidth and changed _width to take QChar *.
  • src/kwq/KWQFontMetrics.mm: Removed charWidth and changed _width to take QChar *.

Merged changes from KDE 3.0 final. Other fixes to get things compiling.

  • src/kdelibs/khtml/css/css_valueimpl.cpp: (CSSStyleDeclarationImpl::setProperty): Fix unused variable.
  • src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::contentsContextMenuEvent): Fix unused variable.
  • src/kdelibs/khtml/rendering/font.cpp: (Font::drawText), (Font::width), (Font::update): Disable special "nsbp" logic for now. We can reenable it if necessary.
  • src/kdelibs/khtml/rendering/render_replaced.cpp: Fix mismerge.
  • src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::nodeAtPoint): Fix unused variable.
  • src/kwq/KWQApplication.mm: (QDesktopWidget::width), (QApplication::desktop): Fix mismerge.
  • src/kwq/KWQColorGroup.mm: Fix QCOLOR_GROUP_SIZE.
  • src/kwq/KWQFontMetrics.mm: (QFontMetrics::lineSpacing): New. (QFontMetrics::width): Remove unused optimization.
  • src/kwq/qt/qfontmetrics.h: Add lineSpacing().

Merged changes from previous merge pass.

2002-03-25 Darin Adler <Darin Adler>

Last bit of making stuff compile and link. Probably will drop the merge now
and take it up again when it's time to merge in KDE 3.0 final.

  • src/kwq/KWQEvent.mm: (QFocusEvent::reason): New.
  • src/kwq/KWQPainter.mm: (QPainter::drawText): New overload.

2002-03-25 Darin Adler <Darin Adler>

  • src/kdelibs/khtml/rendering/font.cpp: (Font::width): Make it call _width so we don't lose the optimization.
  • src/kwq/KWQApplication.mm: (QDesktopWidget::screenNumber): New. (QDesktopWidget::screenGeometry): New. (QApplication::style): New.
  • src/kwq/KWQColorGroup.mm: (QColorGroup::highlight): New. (QColorGroup::highlightedText): New.
  • src/kwq/KWQFont.mm: (QFont::setPixelSize): New.
  • src/kwq/KWQFontMetrics.mm: (QFontMetrics::charWidth): New.
  • src/kwq/KWQKGlobal.mm: (KGlobal::locale): Implement. (KLocale::KLocale): New. (KLocale::languageList): New.
  • src/kwq/KWQKHTMLPart.mm: (KHTMLPart::sheetUsed): New. (KHTMLPart::setSheetUsed): New. (KHTMLPart::zoomFactor): New.
  • src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::mediumFontSize): New.
  • src/kwq/KWQScrollView.mm: (QScrollView::childX): New. (QScrollView::childY): New.
  • src/kwq/qt/qapplication.h: style() returns a QStyle &.
  • src/kwq/qt/qpalette.h: Add Highlight and HighlightedText.

2002-03-24 Darin Adler <Darin Adler>

More compiling. Still won't link.

  • src/kdelibs/khtml/khtmlview.cpp: Disable printing and drag and drop code.
  • src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration): Temporarily turn off our smarter underlining since it relies on access to the string, and TextSlave doesn't have that any more. (RenderText::nodeAtPoint): Get rid of a workaround we don't need any more for a bug that was fixed by KDE folks.
  • src/kwq/KWQApplication.mm: (QApplication::desktop): Make the desktop be a QDesktopWidget.
  • src/kwq/qt/qnamespace.h: Add MetaButton.
  • src/kwq/qt/qtooltip.h: Add a maybeTip virtual function member and a virtual destructor.

2002-03-24 Darin Adler <Darin Adler>

Some fixes to get more stuff to compile.

  • src/kdelibs/khtml/ecma/kjs_dom.cpp: (DOMDocument::getValueProperty): Don't try to look at the private m_bComplete to display "complete". Just do "loading" and "loaded".
  • src/kdelibs/khtml/khtmlpart_p.h: #ifdef this all out for APPLE_CHANGES.
  • src/kdelibs/khtml/rendering/font.cpp: (Font::update): Add an explicit cast to int to avoid float -> int warning.
  • src/kdelibs/khtml/rendering/render_table.cpp: (RenderTable::calcColMinMax): Add an explicit cast to int to avoid uint compared with int warning.
  • src/kdelibs/khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyleSelector): Use sheetUsed() and setSheetUsed() functions on KHTMLPart intead of getting at private fields the way the real KDE code does.
  • src/kwq/KWQKHTMLPart.h: Declare zoomFactor(), sheetUsed(), and setSheetUsed().
  • src/kwq/KWQStyle.h: Add PM_DefaultFramWidth as another metric.
  • src/kwq/kdecore/klocale.h: Add languageList().
  • src/kwq/khtml/khtml_settings.h: Add mediumFontSize().
  • src/kwq/qt/qapplication.h: Add style() and QDesktopWidget.
  • src/kwq/qt/qevent.h: Add reason().
  • src/kwq/qt/qfont.h: Add setPixelSize(int).
  • src/kwq/qt/qfontmetrics.h: Add charWidth() and _charWidth() functions.
  • src/kwq/qt/qpainter.h: Add drawText() overload with position parameter.
  • src/kwq/qt/qpalette.h: Add highlight() and highlightedText().
  • src/kwq/qt/qscrollview.h: Add childX() and childY().
  • src/kwq/KWQApplication.mm: Change KWQDesktopWidget to QDesktopWidget.

WebKit:

  • WebView.subproj/IFPreferences.h:
  • WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Remove the old WebKitFontSizes preference. (-[IFPreferences mediumFontSize]), (-[IFPreferences setMediumFontSize:]): New.
  • WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]): Call updateStyleSelector() instead of recalcStyle().

Merged changes from previous merge branch.

2002-03-25 Darin Adler <Darin Adler>

  • WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Add WebKitMediumFontSizePreferenceKey.

WebBrowser:

  • Preferences.subproj/TextPreferences.m: (-[TextPreferences defaultFontSize]), (-[TextPreferences setDefaultFontSize:]): Just get and set the new mediumFontSize preference rather than doing the whole fontSizes preference dance.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/nodes.h

    r798 r1024  
    2020 *  Boston, MA 02111-1307, USA.
    2121 *
    22  *  $Id$
    2322 */
    2423
     
    3938  class SourceElementsNode;
    4039  class ProgramNode;
     40  class SourceStream;
    4141
    4242  enum Operator { OpEqual,
     
    7676    virtual ~Node();
    7777    virtual Value evaluate(ExecState *exec) = 0;
     78    UString toString() const;
     79    virtual void streamTo(SourceStream &s) const = 0;
    7880    virtual void processVarDecls(ExecState */*exec*/) {}
    7981    int lineNo() const { return line; }
     
    134136    NullNode() {}
    135137    Value evaluate(ExecState *exec);
     138    virtual void streamTo(SourceStream &s) const;
    136139  };
    137140
     
    140143    BooleanNode(bool v) : value(v) {}
    141144    Value evaluate(ExecState *exec);
     145    virtual void streamTo(SourceStream &s) const;
    142146  private:
    143147    bool value;
     
    148152    NumberNode(double v) : value(v) { }
    149153    Value evaluate(ExecState *exec);
     154    virtual void streamTo(SourceStream &s) const;
    150155  private:
    151156    double value;
     
    156161    StringNode(const UString *v) { value = *v; }
    157162    Value evaluate(ExecState *exec);
     163    virtual void streamTo(SourceStream &s) const;
    158164  private:
    159165    UString value;
     
    165171      : pattern(p), flags(f) { }
    166172    Value evaluate(ExecState *exec);
     173    virtual void streamTo(SourceStream &s) const;
    167174  private:
    168175    UString pattern, flags;
     
    173180    ThisNode() {}
    174181    Value evaluate(ExecState *exec);
     182    virtual void streamTo(SourceStream &s) const;
    175183  };
    176184
     
    179187    ResolveNode(const UString *s) : ident(*s) { }
    180188    Value evaluate(ExecState *exec);
     189    virtual void streamTo(SourceStream &s) const;
    181190  private:
    182191    UString ident;
     
    190199    virtual ~GroupNode();
    191200    Value evaluate(ExecState *exec);
     201    virtual void streamTo(SourceStream &s) const { group->streamTo(s); }
    192202  private:
    193203    Node *group;
     
    201211    virtual ~ElisionNode();
    202212    Value evaluate(ExecState *exec);
     213    virtual void streamTo(SourceStream &s) const;
    203214  private:
    204215    ElisionNode *elision;
     
    207218  class ElementNode : public Node {
    208219  public:
    209     ElementNode(ElisionNode *e, Node *n) : list(0l), elision(e), node(n) { }
     220    ElementNode(ElisionNode *e, Node *n) : list(0L), elision(e), node(n) { }
    210221    ElementNode(ElementNode *l, ElisionNode *e, Node *n)
    211222      : list(l), elision(e), node(n) { }
     
    214225    virtual ~ElementNode();
    215226    Value evaluate(ExecState *exec);
     227    virtual void streamTo(SourceStream &s) const;
    216228  private:
    217229    ElementNode *list;
     
    231243    virtual ~ArrayNode();
    232244    Value evaluate(ExecState *exec);
     245    virtual void streamTo(SourceStream &s) const;
    233246  private:
    234247    ElementNode *element;
     
    244257    virtual ~ObjectLiteralNode();
    245258    Value evaluate(ExecState *exec);
     259    virtual void streamTo(SourceStream &s) const;
    246260  private:
    247261    Node *list;
     
    256270    virtual ~PropertyValueNode();
    257271    Value evaluate(ExecState *exec);
     272    virtual void streamTo(SourceStream &s) const;
    258273  private:
    259274    Node *name, *assign, *list;
     
    265280    PropertyNode(const UString *s) : str(*s) { }
    266281    Value evaluate(ExecState *exec);
     282    virtual void streamTo(SourceStream &s) const;
    267283  private:
    268284    double numeric;
     
    277293    virtual ~AccessorNode1();
    278294    Value evaluate(ExecState *exec);
     295    virtual void streamTo(SourceStream &s) const;
    279296  private:
    280297    Node *expr1;
     
    289306    virtual ~AccessorNode2();
    290307    Value evaluate(ExecState *exec);
     308    virtual void streamTo(SourceStream &s) const;
    291309  private:
    292310    Node *expr;
     
    303321    Value evaluate(ExecState *exec);
    304322    List evaluateList(ExecState *exec);
     323    virtual void streamTo(SourceStream &s) const;
    305324  private:
    306325    ArgumentListNode *list;
     
    316335    Value evaluate(ExecState *exec);
    317336    List evaluateList(ExecState *exec);
     337    virtual void streamTo(SourceStream &s) const;
    318338  private:
    319339    ArgumentListNode *list;
     
    328348    virtual ~NewExprNode();
    329349    Value evaluate(ExecState *exec);
     350    virtual void streamTo(SourceStream &s) const;
    330351  private:
    331352    Node *expr;
     
    340361    virtual ~FunctionCallNode();
    341362    Value evaluate(ExecState *exec);
     363    virtual void streamTo(SourceStream &s) const;
    342364  private:
    343365    Node *expr;
     
    352374    virtual ~PostfixNode();
    353375    Value evaluate(ExecState *exec);
     376    virtual void streamTo(SourceStream &s) const;
    354377  private:
    355378    Node *expr;
     
    364387    virtual ~DeleteNode();
    365388    Value evaluate(ExecState *exec);
     389    virtual void streamTo(SourceStream &s) const;
    366390  private:
    367391    Node *expr;
     
    375399    virtual ~VoidNode();
    376400    Value evaluate(ExecState *exec);
     401    virtual void streamTo(SourceStream &s) const;
    377402  private:
    378403    Node *expr;
     
    386411    virtual ~TypeOfNode();
    387412    Value evaluate(ExecState *exec);
     413    virtual void streamTo(SourceStream &s) const;
    388414  private:
    389415    Node *expr;
     
    397423    virtual ~PrefixNode();
    398424    Value evaluate(ExecState *exec);
     425    virtual void streamTo(SourceStream &s) const;
    399426  private:
    400427    Operator oper;
     
    409436    virtual ~UnaryPlusNode();
    410437    Value evaluate(ExecState *exec);
     438    virtual void streamTo(SourceStream &s) const;
    411439  private:
    412440    Node *expr;
     
    420448    virtual ~NegateNode();
    421449    Value evaluate(ExecState *exec);
     450    virtual void streamTo(SourceStream &s) const;
    422451  private:
    423452    Node *expr;
     
    431460    virtual ~BitwiseNotNode();
    432461    Value evaluate(ExecState *exec);
     462    virtual void streamTo(SourceStream &s) const;
    433463  private:
    434464    Node *expr;
     
    442472    virtual ~LogicalNotNode();
    443473    Value evaluate(ExecState *exec);
     474    virtual void streamTo(SourceStream &s) const;
    444475  private:
    445476    Node *expr;
     
    453484    virtual ~MultNode();
    454485    Value evaluate(ExecState *exec);
     486    virtual void streamTo(SourceStream &s) const;
    455487  private:
    456488    Node *term1, *term2;
     
    465497    virtual ~AddNode();
    466498    Value evaluate(ExecState *exec);
     499    virtual void streamTo(SourceStream &s) const;
    467500  private:
    468501    Node *term1, *term2;
     
    478511    virtual ~ShiftNode();
    479512    Value evaluate(ExecState *exec);
     513    virtual void streamTo(SourceStream &s) const;
    480514  private:
    481515    Node *term1, *term2;
     
    491525    virtual ~RelationalNode();
    492526    Value evaluate(ExecState *exec);
     527    virtual void streamTo(SourceStream &s) const;
    493528  private:
    494529    Node *expr1, *expr2;
     
    504539    virtual ~EqualNode();
    505540    Value evaluate(ExecState *exec);
     541    virtual void streamTo(SourceStream &s) const;
    506542  private:
    507543    Node *expr1, *expr2;
     
    517553    virtual ~BitOperNode();
    518554    Value evaluate(ExecState *exec);
     555    virtual void streamTo(SourceStream &s) const;
    519556  private:
    520557    Node *expr1, *expr2;
     
    522559  };
    523560
    524   /** expr1 && expr2, expr1 || expr2 */
     561  /**
     562   * expr1 && expr2, expr1 || expr2
     563   */
    525564  class BinaryLogicalNode : public Node {
    526565  public:
     
    531570    virtual ~BinaryLogicalNode();
    532571    Value evaluate(ExecState *exec);
     572    virtual void streamTo(SourceStream &s) const;
    533573  private:
    534574    Node *expr1, *expr2;
     
    536576  };
    537577
    538   /** The ternary operator, "logical ? expr1 : expr2" */
     578  /**
     579   * The ternary operator, "logical ? expr1 : expr2"
     580   */
    539581  class ConditionalNode : public Node {
    540582  public:
     
    545587    virtual ~ConditionalNode();
    546588    Value evaluate(ExecState *exec);
     589    virtual void streamTo(SourceStream &s) const;
    547590  private:
    548591    Node *logical, *expr1, *expr2;
     
    556599    virtual ~AssignNode();
    557600    Value evaluate(ExecState *exec);
     601    virtual void streamTo(SourceStream &s) const;
    558602  private:
    559603    Node *left;
     
    569613    virtual ~CommaNode();
    570614    Value evaluate(ExecState *exec);
     615    virtual void streamTo(SourceStream &s) const;
    571616  private:
    572617    Node *expr1, *expr2;
     
    582627    virtual Completion execute(ExecState *exec);
    583628    virtual void processVarDecls(ExecState *exec);
     629    virtual void streamTo(SourceStream &s) const;
    584630  private:
    585631    StatementNode *statement;
     
    594640    virtual ~AssignExprNode();
    595641    Value evaluate(ExecState *exec);
     642    virtual void streamTo(SourceStream &s) const;
    596643  private:
    597644    Node *expr;
     
    606653    Value evaluate(ExecState *exec);
    607654    virtual void processVarDecls(ExecState *exec);
     655    virtual void streamTo(SourceStream &s) const;
    608656  private:
    609657    UString ident;
     
    620668    Value evaluate(ExecState *exec);
    621669    virtual void processVarDecls(ExecState *exec);
     670    virtual void streamTo(SourceStream &s) const;
    622671  private:
    623672    Node *list;
     
    633682    virtual Completion execute(ExecState *exec);
    634683    virtual void processVarDecls(ExecState *exec);
     684    virtual void streamTo(SourceStream &s) const;
    635685  private:
    636686    VarDeclListNode *list;
     
    645695    virtual Completion execute(ExecState *exec);
    646696    virtual void processVarDecls(ExecState *exec);
     697    virtual void streamTo(SourceStream &s) const;
    647698  private:
    648699    SourceElementsNode *source;
     
    653704    EmptyStatementNode() { } // debug
    654705    virtual Completion execute(ExecState *exec);
     706    virtual void streamTo(SourceStream &s) const;
    655707  };
    656708
     
    662714    virtual ~ExprStatementNode();
    663715    virtual Completion execute(ExecState *exec);
     716    virtual void streamTo(SourceStream &s) const;
    664717  private:
    665718    Node *expr;
     
    675728    virtual Completion execute(ExecState *exec);
    676729    virtual void processVarDecls(ExecState *exec);
     730    virtual void streamTo(SourceStream &s) const;
    677731  private:
    678732    Node *expr;
     
    688742    virtual Completion execute(ExecState *exec);
    689743    virtual void processVarDecls(ExecState *exec);
     744    virtual void streamTo(SourceStream &s) const;
    690745  private:
    691746    StatementNode *statement;
     
    701756    virtual Completion execute(ExecState *exec);
    702757    virtual void processVarDecls(ExecState *exec);
     758    virtual void streamTo(SourceStream &s) const;
    703759  private:
    704760    Node *expr;
     
    715771    virtual Completion execute(ExecState *exec);
    716772    virtual void processVarDecls(ExecState *exec);
     773    virtual void streamTo(SourceStream &s) const;
    717774  private:
    718775    Node *expr1, *expr2, *expr3;
     
    729786    virtual Completion execute(ExecState *exec);
    730787    virtual void processVarDecls(ExecState *exec);
     788    virtual void streamTo(SourceStream &s) const;
    731789  private:
    732790    UString ident;
     
    742800    ContinueNode(const UString *i) : ident(*i) { }
    743801    virtual Completion execute(ExecState *exec);
     802    virtual void streamTo(SourceStream &s) const;
    744803  private:
    745804    UString ident;
     
    751810    BreakNode(const UString *i) : ident(*i) { }
    752811    virtual Completion execute(ExecState *exec);
     812    virtual void streamTo(SourceStream &s) const;
    753813  private:
    754814    UString ident;
     
    762822    virtual ~ReturnNode();
    763823    virtual Completion execute(ExecState *exec);
     824    virtual void streamTo(SourceStream &s) const;
    764825  private:
    765826    Node *value;
     
    774835    virtual Completion execute(ExecState *exec);
    775836    virtual void processVarDecls(ExecState *exec);
     837    virtual void streamTo(SourceStream &s) const;
    776838  private:
    777839    Node *expr;
     
    788850    Completion evalStatements(ExecState *exec);
    789851    virtual void processVarDecls(ExecState *exec);
     852    virtual void streamTo(SourceStream &s) const;
    790853  private:
    791854    Node *expr;
     
    804867    ClauseListNode *next() const { return nx; }
    805868    virtual void processVarDecls(ExecState *exec);
     869    virtual void streamTo(SourceStream &s) const;
    806870  private:
    807871    CaseClauseNode *cl;
     
    819883    Completion evalBlock(ExecState *exec, const Value& input);
    820884    virtual void processVarDecls(ExecState *exec);
     885    virtual void streamTo(SourceStream &s) const;
    821886  private:
    822887    ClauseListNode *list1;
     
    833898    virtual Completion execute(ExecState *exec);
    834899    virtual void processVarDecls(ExecState *exec);
     900    virtual void streamTo(SourceStream &s) const;
    835901  private:
    836902    Node *expr;
     
    846912    virtual Completion execute(ExecState *exec);
    847913    virtual void processVarDecls(ExecState *exec);
     914    virtual void streamTo(SourceStream &s) const;
    848915  private:
    849916    UString label;
     
    858925    virtual ~ThrowNode();
    859926    virtual Completion execute(ExecState *exec);
     927    virtual void streamTo(SourceStream &s) const;
    860928  private:
    861929    Node *expr;
     
    871939    Completion execute(ExecState *exec, const Value &arg);
    872940    virtual void processVarDecls(ExecState *exec);
     941    virtual void streamTo(SourceStream &s) const;
    873942  private:
    874943    UString ident;
     
    884953    virtual Completion execute(ExecState *exec);
    885954    virtual void processVarDecls(ExecState *exec);
     955    virtual void streamTo(SourceStream &s) const;
    886956  private:
    887957    StatementNode *block;
     
    897967    virtual Completion execute(ExecState *exec);
    898968    virtual void processVarDecls(ExecState *exec);
     969    virtual void streamTo(SourceStream &s) const;
    899970  private:
    900971    StatementNode *block;
     
    913984    UString ident() { return id; }
    914985    ParameterNode *nextParam() { return next; }
     986    virtual void streamTo(SourceStream &s) const;
    915987  private:
    916988    UString id;
     
    9281000    virtual void processFuncDecl(ExecState *exec);
    9291001    virtual void processVarDecls(ExecState *exec);
     1002    void streamTo(SourceStream &s) const;
    9301003  protected:
    9311004    SourceElementsNode *source;
     
    9421015      { /* empty */ return Completion(); }
    9431016    void processFuncDecl(ExecState *exec);
     1017    virtual void streamTo(SourceStream &s) const;
    9441018  private:
    9451019    UString ident;
     
    9561030    virtual ~FuncExprNode();
    9571031    Value evaluate(ExecState *exec);
     1032    virtual void streamTo(SourceStream &s) const;
    9581033  private:
    9591034    ParameterNode *param;
     
    9631038  class SourceElementNode : public StatementNode {
    9641039  public:
    965     SourceElementNode(StatementNode *s) { statement = s; function = 0L; }
    966     SourceElementNode(FuncDeclNode *f) { function = f; statement = 0L;}
     1040    SourceElementNode(StatementNode *s) : statement(s), function(0L) { }
     1041    SourceElementNode(FuncDeclNode *f) : statement(0L), function(f) { }
    9671042    virtual void ref();
    9681043    virtual bool deref();
     
    9711046    virtual void processFuncDecl(ExecState *exec);
    9721047    virtual void processVarDecls(ExecState *exec);
     1048    virtual void streamTo(SourceStream &s) const;
    9731049  private:
    9741050    StatementNode *statement;
     
    9881064    virtual void processFuncDecl(ExecState *exec);
    9891065    virtual void processVarDecls(ExecState *exec);
     1066    virtual void streamTo(SourceStream &s) const;
    9901067  private:
    9911068    SourceElementNode *element; // 'this' element
Note: See TracChangeset for help on using the changeset viewer.