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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp

Issue 2812013004: Rewrite references to "wtf/" to "platform/wtf/" in core/{dom,html,xml}. (Closed)
Patch Set: Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 23 matching lines...) Expand all
34 #include <algorithm> 34 #include <algorithm>
35 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
36 #include "core/frame/FrameConsole.h" 36 #include "core/frame/FrameConsole.h"
37 #include "core/frame/LocalFrame.h" 37 #include "core/frame/LocalFrame.h"
38 #include "core/frame/UseCounter.h" 38 #include "core/frame/UseCounter.h"
39 #include "core/html/parser/HTMLParserIdioms.h" 39 #include "core/html/parser/HTMLParserIdioms.h"
40 #include "core/inspector/ConsoleMessage.h" 40 #include "core/inspector/ConsoleMessage.h"
41 #include "platform/json/JSONValues.h" 41 #include "platform/json/JSONValues.h"
42 #include "platform/loader/fetch/MemoryCache.h" 42 #include "platform/loader/fetch/MemoryCache.h"
43 #include "platform/loader/fetch/ResourceFetcher.h" 43 #include "platform/loader/fetch/ResourceFetcher.h"
44 #include "wtf/text/ParsingUtilities.h" 44 #include "platform/wtf/text/ParsingUtilities.h"
45 #include "wtf/text/StringBuilder.h" 45 #include "platform/wtf/text/StringBuilder.h"
46 #include "wtf/text/StringToNumber.h" 46 #include "platform/wtf/text/StringToNumber.h"
47 47
48 namespace blink { 48 namespace blink {
49 49
50 static bool CompareByDensity(const ImageCandidate& first, 50 static bool CompareByDensity(const ImageCandidate& first,
51 const ImageCandidate& second) { 51 const ImageCandidate& second) {
52 return first.Density() < second.Density(); 52 return first.Density() < second.Density();
53 } 53 }
54 54
55 enum DescriptorTokenizerState { 55 enum DescriptorTokenizerState {
56 kTokenStart, 56 kTokenStart,
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 image_candidates.push_back( 505 image_candidates.push_back(
506 ImageCandidate(src_attribute, 0, src_attribute.length(), 506 ImageCandidate(src_attribute, 0, src_attribute.length(),
507 DescriptorParsingResult(), ImageCandidate::kSrcOrigin)); 507 DescriptorParsingResult(), ImageCandidate::kSrcOrigin));
508 508
509 return PickBestImageCandidate(device_scale_factor, source_size, 509 return PickBestImageCandidate(device_scale_factor, source_size,
510 image_candidates) 510 image_candidates)
511 .ToString(); 511 .ToString();
512 } 512 }
513 513
514 } // namespace blink 514 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698