OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 return; | 681 return; |
682 rareInheritedData.access()->quotes = q; | 682 rareInheritedData.access()->quotes = q; |
683 } | 683 } |
684 | 684 |
685 void RenderStyle::clearCursorList() | 685 void RenderStyle::clearCursorList() |
686 { | 686 { |
687 if (rareInheritedData->cursorData) | 687 if (rareInheritedData->cursorData) |
688 rareInheritedData.access()->cursorData = 0; | 688 rareInheritedData.access()->cursorData = 0; |
689 } | 689 } |
690 | 690 |
| 691 void RenderStyle::addCallbackSelector(const String& selector) |
| 692 { |
| 693 if (!rareNonInheritedData->m_callbackSelectors.contains(selector)) |
| 694 rareNonInheritedData.access()->m_callbackSelectors.append(selector); |
| 695 } |
| 696 |
691 void RenderStyle::clearContent() | 697 void RenderStyle::clearContent() |
692 { | 698 { |
693 if (rareNonInheritedData->m_content) | 699 if (rareNonInheritedData->m_content) |
694 rareNonInheritedData.access()->m_content = nullptr; | 700 rareNonInheritedData.access()->m_content = nullptr; |
695 } | 701 } |
696 | 702 |
697 void RenderStyle::appendContent(PassOwnPtr<ContentData> contentData) | 703 void RenderStyle::appendContent(PassOwnPtr<ContentData> contentData) |
698 { | 704 { |
699 OwnPtr<ContentData>& content = rareNonInheritedData.access()->m_content; | 705 OwnPtr<ContentData>& content = rareNonInheritedData.access()->m_content; |
700 ContentData* lastContent = content.get(); | 706 ContentData* lastContent = content.get(); |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1564 surround.access()->border.m_image.setOutset(outset); | 1570 surround.access()->border.m_image.setOutset(outset); |
1565 } | 1571 } |
1566 | 1572 |
1567 ShapeValue* RenderStyle::initialShapeInside() | 1573 ShapeValue* RenderStyle::initialShapeInside() |
1568 { | 1574 { |
1569 DEFINE_STATIC_LOCAL(RefPtr<ShapeValue>, sOutsideValue, (ShapeValue::createOu
tsideValue())); | 1575 DEFINE_STATIC_LOCAL(RefPtr<ShapeValue>, sOutsideValue, (ShapeValue::createOu
tsideValue())); |
1570 return sOutsideValue.get(); | 1576 return sOutsideValue.get(); |
1571 } | 1577 } |
1572 | 1578 |
1573 } // namespace WebCore | 1579 } // namespace WebCore |
OLD | NEW |