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

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

Issue 1425593007: Separate display item clients for negative and normal/positive z-order children (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Struct DisplayItemClient Created 5 years, 1 month 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 | « third_party/WebKit/Source/web/WebFontImpl.h ('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) 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 #endif 428 #endif
429 TransformRecorder transformRecorder(context, *this, transform); 429 TransformRecorder transformRecorder(context, *this, transform);
430 spoolPage(context, pageIndex); 430 spoolPage(context, pageIndex);
431 431
432 currentHeight += pageSizeInPixels.height() + 1; 432 currentHeight += pageSizeInPixels.height() + 1;
433 } 433 }
434 pictureBuilder.endRecording()->playback(canvas); 434 pictureBuilder.endRecording()->playback(canvas);
435 outputLinkedDestinations(canvas, allPagesRect); 435 outputLinkedDestinations(canvas, allPagesRect);
436 } 436 }
437 437
438 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } 438 DisplayItemClient displayItemClient() const { return DisplayItemClient(this) ; }
439 439
440 String debugName() const { return "ChromePrintContext"; } 440 String debugName() const { return "ChromePrintContext"; }
441 441
442 protected: 442 protected:
443 // Spools the printed page, a subrect of frame(). Skip the scale step. 443 // Spools the printed page, a subrect of frame(). Skip the scale step.
444 // NativeTheme doesn't play well with scaling. Scaling is done browser side 444 // NativeTheme doesn't play well with scaling. Scaling is done browser side
445 // instead. Returns the scale to be applied. 445 // instead. Returns the scale to be applied.
446 // On Linux, we don't have the problem with NativeTheme, hence we let WebKit 446 // On Linux, we don't have the problem with NativeTheme, hence we let WebKit
447 // do the scaling and ignore the return value. 447 // do the scaling and ignore the return value.
448 virtual float spoolPage(GraphicsContext& context, int pageNumber) 448 virtual float spoolPage(GraphicsContext& context, int pageNumber)
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 } 2219 }
2220 2220
2221 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const 2221 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const
2222 { 2222 {
2223 if (!frame()) 2223 if (!frame())
2224 return WebSandboxFlags::None; 2224 return WebSandboxFlags::None;
2225 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2225 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2226 } 2226 }
2227 2227
2228 } // namespace blink 2228 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFontImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698