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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 1508223005: Client side display item cache flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Try performance 2 Created 4 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 400
401 { 401 {
402 DrawingRecorder lineBoundaryRecorder(context, *this, DisplayItem::Pr intedContentDestinationLocations, pageRect); 402 DrawingRecorder lineBoundaryRecorder(context, *this, DisplayItem::Pr intedContentDestinationLocations, pageRect);
403 outputLinkedDestinations(context, pageRect); 403 outputLinkedDestinations(context, pageRect);
404 } 404 }
405 405
406 return scale; 406 return scale;
407 } 407 }
408 408
409 private: 409 private:
410 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION
411
410 void dispatchEventsForPrintingOnAllFrames() 412 void dispatchEventsForPrintingOnAllFrames()
411 { 413 {
412 HeapVector<Member<Document>> documents; 414 HeapVector<Member<Document>> documents;
413 for (Frame* currentFrame = frame(); currentFrame; currentFrame = current Frame->tree().traverseNext(frame())) { 415 for (Frame* currentFrame = frame(); currentFrame; currentFrame = current Frame->tree().traverseNext(frame())) {
414 if (currentFrame->isLocalFrame()) 416 if (currentFrame->isLocalFrame())
415 documents.append(toLocalFrame(currentFrame)->document()); 417 documents.append(toLocalFrame(currentFrame)->document());
416 } 418 }
417 419
418 for (auto& doc : documents) 420 for (auto& doc : documents)
419 doc->dispatchEventsForPrinting(); 421 doc->dispatchEventsForPrinting();
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 return WebSandboxFlags::None; 2112 return WebSandboxFlags::None;
2111 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2113 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2112 } 2114 }
2113 2115
2114 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) 2116 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags)
2115 { 2117 {
2116 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2118 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2117 } 2119 }
2118 2120
2119 } // namespace blink 2121 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698