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

Side by Side Diff: Source/core/html/parser/HTMLPreloadScanner.cpp

Issue 1073783002: Turned m_sourceSize in preloadScanner to a float. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/http/tests/loading/preload-image-sizes-2x-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/
4 * Copyright (C) 2010 Google Inc. All Rights Reserved. 4 * Copyright (C) 2010 Google Inc. All Rights Reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 364
365 const StringImpl* m_tagImpl; 365 const StringImpl* m_tagImpl;
366 String m_urlToLoad; 366 String m_urlToLoad;
367 ImageCandidate m_srcsetImageCandidate; 367 ImageCandidate m_srcsetImageCandidate;
368 String m_charset; 368 String m_charset;
369 bool m_linkIsStyleSheet; 369 bool m_linkIsStyleSheet;
370 bool m_matchedMediaAttribute; 370 bool m_matchedMediaAttribute;
371 bool m_inputIsImage; 371 bool m_inputIsImage;
372 String m_imgSrcUrl; 372 String m_imgSrcUrl;
373 String m_srcsetAttributeValue; 373 String m_srcsetAttributeValue;
374 unsigned m_sourceSize; 374 float m_sourceSize;
375 bool m_sourceSizeSet; 375 bool m_sourceSizeSet;
376 bool m_isCORSEnabled; 376 bool m_isCORSEnabled;
377 FetchRequest::DeferOption m_defer; 377 FetchRequest::DeferOption m_defer;
378 StoredCredentials m_allowCredentials; 378 StoredCredentials m_allowCredentials;
379 RefPtr<MediaValues> m_mediaValues; 379 RefPtr<MediaValues> m_mediaValues;
380 }; 380 };
381 381
382 TokenPreloadScanner::TokenPreloadScanner(const KURL& documentURL, PassRefPtr<Med iaValues> mediaValues) 382 TokenPreloadScanner::TokenPreloadScanner(const KURL& documentURL, PassRefPtr<Med iaValues> mediaValues)
383 : m_documentURL(documentURL) 383 : m_documentURL(documentURL)
384 , m_inStyle(false) 384 , m_inStyle(false)
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 if (m_token.type() == HTMLToken::StartTag) 552 if (m_token.type() == HTMLToken::StartTag)
553 m_tokenizer->updateStateFor(attemptStaticStringCreation(m_token.name (), Likely8Bit)); 553 m_tokenizer->updateStateFor(attemptStaticStringCreation(m_token.name (), Likely8Bit));
554 m_scanner.scan(m_token, m_source, requests); 554 m_scanner.scan(m_token, m_source, requests);
555 m_token.clear(); 555 m_token.clear();
556 } 556 }
557 557
558 preloader->takeAndPreload(requests); 558 preloader->takeAndPreload(requests);
559 } 559 }
560 560
561 } 561 }
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/loading/preload-image-sizes-2x-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698