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

Side by Side Diff: third_party/WebKit/Source/core/paint/ThemePainterMac.mm

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Google, Inc. 3 * Copyright (C) 2008, 2009 Google, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 HIThemeDrawTrack(&trackInfo, 0, cgContext, kHIThemeOrientationNormal); 244 HIThemeDrawTrack(&trackInfo, 0, cgContext, kHIThemeOrientationNormal);
245 245
246 GraphicsContextStateSaver stateSaver(paintInfo.context); 246 GraphicsContextStateSaver stateSaver(paintInfo.context);
247 247
248 if (!layoutProgress.styleRef().isLeftToRightDirection()) { 248 if (!layoutProgress.styleRef().isLeftToRightDirection()) {
249 paintInfo.context.translate(2 * inflatedRect.x() + inflatedRect.width(), 0); 249 paintInfo.context.translate(2 * inflatedRect.x() + inflatedRect.width(), 0);
250 paintInfo.context.scale(-1, 1); 250 paintInfo.context.scale(-1, 1);
251 } 251 }
252 252
253 if (!paintInfo.context.contextDisabled()) 253 if (!paintInfo.context.contextDisabled())
254 imageBuffer->draw(paintInfo.context, FloatRect(inflatedRect.location(), FloatSize(imageBuffer->size())), nullptr, SkXfermode::kSrcOver_Mode); 254 imageBuffer->draw(paintInfo.context, FloatRect(inflatedRect.location(), FloatSize(imageBuffer->size())), nullptr, SkXfermode::kSrcOver_Mode, nullptr); / / FIXME: not color corect.
255 return false; 255 return false;
256 } 256 }
257 257
258 bool ThemePainterMac::paintMenuListButton(const LayoutObject& o, const PaintInfo & paintInfo, const IntRect& r) 258 bool ThemePainterMac::paintMenuListButton(const LayoutObject& o, const PaintInfo & paintInfo, const IntRect& r)
259 { 259 {
260 IntRect bounds = IntRect(r.x() + o.styleRef().borderLeftWidth(), 260 IntRect bounds = IntRect(r.x() + o.styleRef().borderLeftWidth(),
261 r.y() + o.styleRef().borderTopWidth(), 261 r.y() + o.styleRef().borderTopWidth(),
262 r.width() - o.styleRef().borderLeftWidth() - o.styl eRef().borderRightWidth(), 262 r.width() - o.styleRef().borderLeftWidth() - o.styl eRef().borderRightWidth(),
263 r.height() - o.styleRef().borderTopWidth() - o.styl eRef().borderBottomWidth()); 263 r.height() - o.styleRef().borderTopWidth() - o.styl eRef().borderBottomWidth());
264 // Since we actually know the size of the control here, we restrict the font 264 // Since we actually know the size of the control here, we restrict the font
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 [search setSearchMenuTemplate:nil]; 586 [search setSearchMenuTemplate:nil];
587 587
588 m_layoutTheme.updateActiveState([search searchButtonCell], o); 588 m_layoutTheme.updateActiveState([search searchButtonCell], o);
589 589
590 [[search searchButtonCell] drawWithFrame:unzoomedRect inView:m_layoutTheme.d ocumentViewFor(o)]; 590 [[search searchButtonCell] drawWithFrame:unzoomedRect inView:m_layoutTheme.d ocumentViewFor(o)];
591 [[search searchButtonCell] setControlView:nil]; 591 [[search searchButtonCell] setControlView:nil];
592 return false; 592 return false;
593 } 593 }
594 594
595 } // namespace blink 595 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGPaintContext.cpp ('k') | third_party/WebKit/Source/core/paint/VideoPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698