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

Unified Diff: Source/core/rendering/RenderThemeChromiumMac.mm

Issue 22887044: [oilpan] Make the oilpan branch build on Mac. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Add FIXME. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/core/svg/SVGTRefElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderThemeChromiumMac.mm
diff --git a/Source/core/rendering/RenderThemeChromiumMac.mm b/Source/core/rendering/RenderThemeChromiumMac.mm
index c180760affb842cb58a345c82e791bdd6195eaf6..7f003b57737b17d5faa265d5dba590cc414e2b2e 100644
--- a/Source/core/rendering/RenderThemeChromiumMac.mm
+++ b/Source/core/rendering/RenderThemeChromiumMac.mm
@@ -1543,7 +1543,7 @@ void RenderThemeChromiumMac::adjustSearchFieldStyle(StyleResolver* styleResolver
bool RenderThemeChromiumMac::paintSearchFieldCancelButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r)
{
- const Handle<Element>& input = o->node()->shadowHost();
+ Handle<Element> input = adoptRawResult(o->node()->shadowHost());
if (!input)
input = toElement(o->node());
@@ -1555,7 +1555,7 @@ bool RenderThemeChromiumMac::paintSearchFieldCancelButton(RenderObject* o, const
NSSearchFieldCell* search = this->search();
- if (!input->isDisabledFormControl() && (input->isTextFormControl() && !toHTMLTextFormControlElement(input)->isReadOnly())) {
+ if (!input->isDisabledFormControl() && (input->isTextFormControl() && !toHTMLTextFormControlElement(input.raw())->isReadOnly())) {
updateActiveState([search cancelButtonCell], o);
updatePressedState([search cancelButtonCell], o);
}
@@ -1637,7 +1637,7 @@ void RenderThemeChromiumMac::adjustSearchFieldResultsDecorationStyle(StyleResolv
bool RenderThemeChromiumMac::paintSearchFieldResultsDecoration(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r)
{
- Node* input = o->node()->shadowHost();
+ Handle<Node> input = adoptRawResult(o->node()->shadowHost());
if (!input)
input = o->node();
if (!input->renderer()->isBox())
@@ -1672,7 +1672,7 @@ void RenderThemeChromiumMac::adjustSearchFieldResultsButtonStyle(StyleResolver*,
bool RenderThemeChromiumMac::paintSearchFieldResultsButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r)
{
- Node* input = o->node()->shadowHost();
+ Handle<Node> input = adoptRawResult(o->node()->shadowHost());
if (!input)
input = o->node();
if (!input->renderer()->isBox())
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/core/svg/SVGTRefElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698