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

Side by Side Diff: Source/core/html/HTMLStyleElement.cpp

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved.
6 * (C) 2007 Rob Buis (buis@kde.org) 6 * (C) 2007 Rob Buis (buis@kde.org)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 , m_loadedSheet(false) 51 , m_loadedSheet(false)
52 , m_scopedStyleRegistrationState(NotRegistered) 52 , m_scopedStyleRegistrationState(NotRegistered)
53 { 53 {
54 ScriptWrappable::init(this); 54 ScriptWrappable::init(this);
55 } 55 }
56 56
57 HTMLStyleElement::~HTMLStyleElement() 57 HTMLStyleElement::~HTMLStyleElement()
58 { 58 {
59 // During tear-down, willRemove isn't called, so m_scopedStyleRegistrationSt ate may still be RegisteredAsScoped or RegisteredInShadowRoot here. 59 // During tear-down, willRemove isn't called, so m_scopedStyleRegistrationSt ate may still be RegisteredAsScoped or RegisteredInShadowRoot here.
60 // Therefore we can't ASSERT(m_scopedStyleRegistrationState == NotRegistered ). 60 // Therefore we can't ASSERT(m_scopedStyleRegistrationState == NotRegistered ).
61 #if ENABLE(OILPAN)
62 // Remove this once StyleSheet has a strong pointer to its owner.
63 if (m_sheet)
64 m_sheet->clearOwnerNode();
65 #else
61 StyleElement::clearDocumentData(document(), this); 66 StyleElement::clearDocumentData(document(), this);
67 #endif
62 68
63 styleLoadEventSender().cancelEvent(this); 69 styleLoadEventSender().cancelEvent(this);
64 } 70 }
65 71
66 PassRefPtr<HTMLStyleElement> HTMLStyleElement::create(Document& document, bool c reatedByParser) 72 PassRefPtr<HTMLStyleElement> HTMLStyleElement::create(Document& document, bool c reatedByParser)
67 { 73 {
68 return adoptRef(new HTMLStyleElement(document, createdByParser)); 74 return adoptRef(new HTMLStyleElement(document, createdByParser));
69 } 75 }
70 76
71 void HTMLStyleElement::parseAttribute(const QualifiedName& name, const AtomicStr ing& value) 77 void HTMLStyleElement::parseAttribute(const QualifiedName& name, const AtomicStr ing& value)
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 return m_sheet->disabled(); 287 return m_sheet->disabled();
282 } 288 }
283 289
284 void HTMLStyleElement::setDisabled(bool setDisabled) 290 void HTMLStyleElement::setDisabled(bool setDisabled)
285 { 291 {
286 if (CSSStyleSheet* styleSheet = sheet()) 292 if (CSSStyleSheet* styleSheet = sheet())
287 styleSheet->setDisabled(setDisabled); 293 styleSheet->setDisabled(setDisabled);
288 } 294 }
289 295
290 } 296 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLObjectElement.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698