Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
index 1a41b81856c6b42adf792ccf44b7f99d5035fc58..ab1e39d240c61e3cbf4c996e1c441590613322d7 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -831,14 +831,20 @@ void HTMLDocumentParser::startBackgroundParser() {
config->decoder = takeDecoder();
config->tokenizedChunkQueue = m_tokenizedChunkQueue.get();
if (document()->settings()) {
- if (document()->settings()->backgroundHtmlParserOutstandingTokenLimit())
+ if (document()
+ ->settings()
+ ->getBackgroundHtmlParserOutstandingTokenLimit()) {
config->outstandingTokenLimit =
- document()->settings()->backgroundHtmlParserOutstandingTokenLimit();
- if (document()->settings()->backgroundHtmlParserPendingTokenLimit())
+ document()
+ ->settings()
+ ->getBackgroundHtmlParserOutstandingTokenLimit();
+ }
+ if (document()->settings()->getBackgroundHtmlParserPendingTokenLimit()) {
config->pendingTokenLimit =
- document()->settings()->backgroundHtmlParserPendingTokenLimit();
+ document()->settings()->getBackgroundHtmlParserPendingTokenLimit();
+ }
config->shouldCoalesceChunks =
- document()->settings()->parseHTMLOnMainThreadCoalesceChunks();
+ document()->settings()->getParseHTMLOnMainThreadCoalesceChunks();
}
ASSERT(config->xssAuditor->isSafeToSendToAnotherThread());
@@ -1156,7 +1162,7 @@ void HTMLDocumentParser::appendBytes(const char* data, size_t length) {
LookaheadParserTaskSynchrony policy =
document()->settings() &&
- document()->settings()->parseHTMLOnMainThreadSyncTokenize()
+ document()->settings()->getParseHTMLOnMainThreadSyncTokenize()
? Synchronous
: Asynchronous;
postTaskToLookaheadParser(

Powered by Google App Engine
This is Rietveld 408576698