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

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

Issue 1839643009: RELEASE_ASSERT -> CHECK and ASSERT -> DCHECK in web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return DCHECK_IS_ON checks. 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 FloatSize size(page->frameHost().visualViewport().size()); 93 FloatSize size(page->frameHost().visualViewport().size());
94 if (size != m_layer->size()) 94 if (size != m_layer->size())
95 m_layer->setSize(size); 95 m_layer->setSize(size);
96 96
97 m_layer->setNeedsDisplay(); 97 m_layer->setNeedsDisplay();
98 } 98 }
99 99
100 LayoutRect PageOverlay::visualRect() const 100 LayoutRect PageOverlay::visualRect() const
101 { 101 {
102 ASSERT(m_layer.get()); 102 DCHECK(m_layer.get());
103 return LayoutRect(FloatPoint(), m_layer->size()); 103 return LayoutRect(FloatPoint(), m_layer->size());
104 } 104 }
105 105
106 IntRect PageOverlay::computeInterestRect(const GraphicsLayer* graphicsLayer, con st IntRect&) const 106 IntRect PageOverlay::computeInterestRect(const GraphicsLayer* graphicsLayer, con st IntRect&) const
107 { 107 {
108 return IntRect(IntPoint(), expandedIntSize(m_layer->size())); 108 return IntRect(IntPoint(), expandedIntSize(m_layer->size()));
109 } 109 }
110 110
111 void PageOverlay::paintContents(const GraphicsLayer* graphicsLayer, GraphicsCont ext& gc, GraphicsLayerPaintingPhase phase, const IntRect& interestRect) const 111 void PageOverlay::paintContents(const GraphicsLayer* graphicsLayer, GraphicsCont ext& gc, GraphicsLayerPaintingPhase phase, const IntRect& interestRect) const
112 { 112 {
113 ASSERT(m_layer); 113 DCHECK(m_layer);
114 m_delegate->paintPageOverlay(*this, gc, interestRect.size()); 114 m_delegate->paintPageOverlay(*this, gc, interestRect.size());
115 } 115 }
116 116
117 String PageOverlay::debugName(const GraphicsLayer*) const 117 String PageOverlay::debugName(const GraphicsLayer*) const
118 { 118 {
119 return "WebViewImpl Page Overlay Content Layer"; 119 return "WebViewImpl Page Overlay Content Layer";
120 } 120 }
121 121
122 } // namespace blink 122 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/NotificationPermissionClientImpl.cpp ('k') | third_party/WebKit/Source/web/PopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698