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

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: Created 4 years, 12 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 { 464 {
465 DrawingRecorder lineBoundaryRecorder(context, *this, DisplayItem::Pr intedContentDestinationLocations, pageRect); 465 DrawingRecorder lineBoundaryRecorder(context, *this, DisplayItem::Pr intedContentDestinationLocations, pageRect);
466 outputLinkedDestinations(context, pageRect); 466 outputLinkedDestinations(context, pageRect);
467 } 467 }
468 468
469 return scale; 469 return scale;
470 } 470 }
471 471
472 private: 472 private:
473 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION
474
473 void dispatchEventsForPrintingOnAllFrames() 475 void dispatchEventsForPrintingOnAllFrames()
474 { 476 {
475 WillBeHeapVector<RefPtrWillBeMember<Document>> documents; 477 WillBeHeapVector<RefPtrWillBeMember<Document>> documents;
476 for (Frame* currentFrame = frame(); currentFrame; currentFrame = current Frame->tree().traverseNext(frame())) { 478 for (Frame* currentFrame = frame(); currentFrame; currentFrame = current Frame->tree().traverseNext(frame())) {
477 if (currentFrame->isLocalFrame()) 479 if (currentFrame->isLocalFrame())
478 documents.append(toLocalFrame(currentFrame)->document()); 480 documents.append(toLocalFrame(currentFrame)->document());
479 } 481 }
480 482
481 for (auto& doc : documents) 483 for (auto& doc : documents)
482 doc->dispatchEventsForPrinting(); 484 doc->dispatchEventsForPrinting();
(...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 } 2263 }
2262 2264
2263 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const 2265 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const
2264 { 2266 {
2265 if (!frame()) 2267 if (!frame())
2266 return WebSandboxFlags::None; 2268 return WebSandboxFlags::None;
2267 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2269 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2268 } 2270 }
2269 2271
2270 } // namespace blink 2272 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698