Changeset 57193 in webkit


Ignore:
Timestamp:
Apr 6, 2010 9:58:29 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-06 Laszlo Gombos <Laszlo Gombos>

Reviewed by Eric Seidel.

Remove obsolete MOBILE flag
https://bugs.webkit.org/show_bug.cgi?id=37125

The MOBILE flag is no longer used by any of the ports.
The flag use to control some tokenizer defaults that
can be changed runtime.

No new tests as there is no new functionality.

  • config.h:
  • html/HTMLTokenizer.cpp:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57192 r57193  
     12010-04-06  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Remove obsolete MOBILE flag
     6        https://bugs.webkit.org/show_bug.cgi?id=37125
     7
     8        The MOBILE flag is no longer used by any of the ports.
     9        The flag use to control some tokenizer defaults that
     10        can be changed runtime.
     11
     12        No new tests as there is no new functionality.
     13
     14        * config.h:
     15        * html/HTMLTokenizer.cpp:
     16
    1172010-04-06  Adam Barth  <abarth@webkit.org>
    218
  • trunk/WebCore/config.h

    r57108 r57193  
    4343#define WEBKIT_EXPORTDATA
    4444#endif
    45 
    46 #define MOBILE 0
    4745
    4846#ifdef __APPLE__
  • trunk/WebCore/html/HTMLTokenizer.cpp

    r55207 r57193  
    6868using namespace HTMLNames;
    6969
    70 #if MOBILE
    71 // The mobile device needs to be responsive, as such the tokenizer chunk size is reduced.
    7270// This value is used to define how many characters the tokenizer will process before
    7371// yeilding control.
    74 static const int defaultTokenizerChunkSize = 256;
    75 #else
     72// To increase responsivness reduce the tokenizer chunk size.
    7673static const int defaultTokenizerChunkSize = 4096;
    77 #endif
    78 
    79 #if MOBILE
    80 // As the chunks are smaller (above), the tokenizer should not yield for as long a period, otherwise
    81 // it will take way to long to load a page.
    82 static const double defaultTokenizerTimeDelay = 0.300;
    83 #else
     74
    8475// FIXME: We would like this constant to be 200ms.
    8576// Yielding more aggressively results in increased responsiveness and better incremental rendering.
    8677// It slows down overall page-load on slower machines, though, so for now we set a value of 500.
     78// For smaller chunks (above) decrease the value of TimerDelay as the the tokenizer should not
     79// yield for as long a period otherwise it will take way to long to load a page.
    8780static const double defaultTokenizerTimeDelay = 0.500;
    88 #endif
    8981
    9082static const char commentStart [] = "<!--";
Note: See TracChangeset for help on using the changeset viewer.