Changeset 57193 in webkit
- Timestamp:
- Apr 6, 2010 9:58:29 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57192 r57193 1 2010-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 1 17 2010-04-06 Adam Barth <abarth@webkit.org> 2 18 -
trunk/WebCore/config.h
r57108 r57193 43 43 #define WEBKIT_EXPORTDATA 44 44 #endif 45 46 #define MOBILE 047 45 48 46 #ifdef __APPLE__ -
trunk/WebCore/html/HTMLTokenizer.cpp
r55207 r57193 68 68 using namespace HTMLNames; 69 69 70 #if MOBILE71 // The mobile device needs to be responsive, as such the tokenizer chunk size is reduced.72 70 // This value is used to define how many characters the tokenizer will process before 73 71 // yeilding control. 74 static const int defaultTokenizerChunkSize = 256; 75 #else 72 // To increase responsivness reduce the tokenizer chunk size. 76 73 static 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 84 75 // FIXME: We would like this constant to be 200ms. 85 76 // Yielding more aggressively results in increased responsiveness and better incremental rendering. 86 77 // 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. 87 80 static const double defaultTokenizerTimeDelay = 0.500; 88 #endif89 81 90 82 static const char commentStart [] = "<!--";
Note: See TracChangeset
for help on using the changeset viewer.