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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoaderClient.h

Issue 2564633002: Don't create layout objects for children of display-none iframes. (Closed)
Patch Set: Rebase. Created 3 years, 10 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 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 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #include "wtf/Vector.h" 53 #include "wtf/Vector.h"
54 #include <memory> 54 #include <memory>
55 #include <v8.h> 55 #include <v8.h>
56 56
57 namespace blink { 57 namespace blink {
58 58
59 class Document; 59 class Document;
60 class DocumentLoader; 60 class DocumentLoader;
61 struct FrameLoadRequest; 61 struct FrameLoadRequest;
62 class HTMLFormElement; 62 class HTMLFormElement;
63 class HTMLFrameElementBase;
64 class HTMLFrameOwnerElement; 63 class HTMLFrameOwnerElement;
65 class HTMLMediaElement; 64 class HTMLMediaElement;
66 class HTMLPlugInElement; 65 class HTMLPlugInElement;
67 class HistoryItem; 66 class HistoryItem;
68 class KURL; 67 class KURL;
69 class LocalFrame; 68 class LocalFrame;
70 class ResourceError; 69 class ResourceError;
71 class ResourceRequest; 70 class ResourceRequest;
72 class ResourceResponse; 71 class ResourceResponse;
73 class SecurityOrigin; 72 class SecurityOrigin;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 virtual void didSetFeaturePolicyHeader( 272 virtual void didSetFeaturePolicyHeader(
274 const WebParsedFeaturePolicy& parsedHeader) {} 273 const WebParsedFeaturePolicy& parsedHeader) {}
275 274
276 // Called when a new Content Security Policy is added to the frame's document. 275 // Called when a new Content Security Policy is added to the frame's document.
277 // This can be triggered by handling of HTTP headers, handling of <meta> 276 // This can be triggered by handling of HTTP headers, handling of <meta>
278 // element, or by inheriting CSP from the parent (in case of about:blank). 277 // element, or by inheriting CSP from the parent (in case of about:blank).
279 virtual void didAddContentSecurityPolicy(const String& headerValue, 278 virtual void didAddContentSecurityPolicy(const String& headerValue,
280 ContentSecurityPolicyHeaderType, 279 ContentSecurityPolicyHeaderType,
281 ContentSecurityPolicyHeaderSource) {} 280 ContentSecurityPolicyHeaderSource) {}
282 281
283 virtual void didChangeFrameOwnerProperties(HTMLFrameElementBase*) {} 282 virtual void didChangeFrameOwnerProperties(HTMLFrameOwnerElement*) {}
284 283
285 virtual void dispatchWillStartUsingPeerConnectionHandler( 284 virtual void dispatchWillStartUsingPeerConnectionHandler(
286 WebRTCPeerConnectionHandler*) {} 285 WebRTCPeerConnectionHandler*) {}
287 286
288 virtual bool allowWebGL(bool enabledPerSettings) { 287 virtual bool allowWebGL(bool enabledPerSettings) {
289 return enabledPerSettings; 288 return enabledPerSettings;
290 } 289 }
291 290
292 // If an HTML document is being loaded, informs the embedder that the document 291 // If an HTML document is being loaded, informs the embedder that the document
293 // will have its <body> attached soon. 292 // will have its <body> attached soon.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } 337 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); }
339 338
340 virtual BlameContext* frameBlameContext() { return nullptr; } 339 virtual BlameContext* frameBlameContext() { return nullptr; }
341 340
342 virtual void setHasReceivedUserGesture() {} 341 virtual void setHasReceivedUserGesture() {}
343 }; 342 };
344 343
345 } // namespace blink 344 } // namespace blink
346 345
347 #endif // FrameLoaderClient_h 346 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698