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/math_object.cpp

    r798 r1024  
    1818 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1919 *
    20  *  $Id$
    2120 */
    2221
     
    3534#include "math_object.lut.h"
    3635
     36#ifndef M_PI
     37#define M_PI 3.14159265358979323846
     38#endif  /*  M_PI  */
     39
    3740using namespace KJS;
    3841
     
    4346/* Source for math_object.lut.h
    4447@begin mathTable 21
    45   E             MathObjectImp::Euler    DontEnum
    46   LN2           MathObjectImp::Ln2      DontEnum
    47   LN10          MathObjectImp::Ln10     DontEnum
    48   LOG2E         MathObjectImp::Log2E    DontEnum
    49   LOG10E        MathObjectImp::Log10E   DontEnum
    50   PI            MathObjectImp::Pi       DontEnum
    51   SQRT1_2       MathObjectImp::Sqrt1_2  DontEnum
    52   SQRT2         MathObjectImp::Sqrt2    DontEnum
    53   abs           MathObjectImp::Abs      DontEnum|Function 1
    54   acos          MathObjectImp::ACos     DontEnum|Function 1
    55   asin          MathObjectImp::ASin     DontEnum|Function 1
    56   atan          MathObjectImp::ATan     DontEnum|Function 1
    57   atan2         MathObjectImp::ATan2    DontEnum|Function 2
    58   ceil          MathObjectImp::Ceil     DontEnum|Function 1
    59   cos           MathObjectImp::Cos      DontEnum|Function 1
    60   exp           MathObjectImp::Exp      DontEnum|Function 1
    61   floor         MathObjectImp::Floor    DontEnum|Function 1
    62   log           MathObjectImp::Log      DontEnum|Function 1
    63   max           MathObjectImp::Max      DontEnum|Function 2
    64   min           MathObjectImp::Min      DontEnum|Function 2
    65   pow           MathObjectImp::Pow      DontEnum|Function 2
    66   random        MathObjectImp::Random   DontEnum|Function 0
    67   round         MathObjectImp::Round    DontEnum|Function 1
    68   sin           MathObjectImp::Sin      DontEnum|Function 1
    69   sqrt          MathObjectImp::Sqrt     DontEnum|Function 1
    70   tan           MathObjectImp::Tan      DontEnum|Function 1
     48  E             MathObjectImp::Euler    DontEnum|DontDelete|ReadOnly
     49  LN2           MathObjectImp::Ln2      DontEnum|DontDelete|ReadOnly
     50  LN10          MathObjectImp::Ln10     DontEnum|DontDelete|ReadOnly
     51  LOG2E         MathObjectImp::Log2E    DontEnum|DontDelete|ReadOnly
     52  LOG10E        MathObjectImp::Log10E   DontEnum|DontDelete|ReadOnly
     53  PI            MathObjectImp::Pi       DontEnum|DontDelete|ReadOnly
     54  SQRT1_2       MathObjectImp::Sqrt1_2  DontEnum|DontDelete|ReadOnly
     55  SQRT2         MathObjectImp::Sqrt2    DontEnum|DontDelete|ReadOnly
     56  abs           MathObjectImp::Abs      DontEnum|Function 1
     57  acos          MathObjectImp::ACos     DontEnum|Function 1
     58  asin          MathObjectImp::ASin     DontEnum|Function 1
     59  atan          MathObjectImp::ATan     DontEnum|Function 1
     60  atan2         MathObjectImp::ATan2    DontEnum|Function 2
     61  ceil          MathObjectImp::Ceil     DontEnum|Function 1
     62  cos           MathObjectImp::Cos      DontEnum|Function 1
     63  exp           MathObjectImp::Exp      DontEnum|Function 1
     64  floor         MathObjectImp::Floor    DontEnum|Function 1
     65  log           MathObjectImp::Log      DontEnum|Function 1
     66  max           MathObjectImp::Max      DontEnum|Function 2
     67  min           MathObjectImp::Min      DontEnum|Function 2
     68  pow           MathObjectImp::Pow      DontEnum|Function 2
     69  random        MathObjectImp::Random   DontEnum|Function 0
     70  round         MathObjectImp::Round    DontEnum|Function 1
     71  sin           MathObjectImp::Sin      DontEnum|Function 1
     72  sqrt          MathObjectImp::Sqrt     DontEnum|Function 1
     73  tan           MathObjectImp::Tan      DontEnum|Function 1
    7174@end
    7275*/
     
    104107    break;
    105108  case Pi:
    106     d = 2.0 * asin(1.0);
     109    d = M_PI;
    107110    break;
    108111  case Sqrt1_2:
Note: See TracChangeset for help on using the changeset viewer.