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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 2336103003: Convert a few more CFI blacklist entries into DISABLE_CFI_PERF attributes. (Closed)
Patch Set: Created 4 years, 3 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) 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 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved.
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved.
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 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 } 1117 }
1118 1118
1119 int HTMLElement::offsetWidthForBinding() 1119 int HTMLElement::offsetWidthForBinding()
1120 { 1120 {
1121 Element* offsetParent = unclosedOffsetParent(); 1121 Element* offsetParent = unclosedOffsetParent();
1122 if (LayoutBoxModelObject* layoutObject = layoutBoxModelObject()) 1122 if (LayoutBoxModelObject* layoutObject = layoutBoxModelObject())
1123 return adjustLayoutUnitForAbsoluteZoom(LayoutUnit(layoutObject->pixelSna ppedOffsetWidth(offsetParent)), layoutObject->styleRef()).round(); 1123 return adjustLayoutUnitForAbsoluteZoom(LayoutUnit(layoutObject->pixelSna ppedOffsetWidth(offsetParent)), layoutObject->styleRef()).round();
1124 return 0; 1124 return 0;
1125 } 1125 }
1126 1126
1127 DISABLE_CFI_PERF
1127 int HTMLElement::offsetHeightForBinding() 1128 int HTMLElement::offsetHeightForBinding()
1128 { 1129 {
1129 Element* offsetParent = unclosedOffsetParent(); 1130 Element* offsetParent = unclosedOffsetParent();
1130 if (LayoutBoxModelObject* layoutObject = layoutBoxModelObject()) 1131 if (LayoutBoxModelObject* layoutObject = layoutBoxModelObject())
1131 return adjustLayoutUnitForAbsoluteZoom(LayoutUnit(layoutObject->pixelSna ppedOffsetHeight(offsetParent)), layoutObject->styleRef()).round(); 1132 return adjustLayoutUnitForAbsoluteZoom(LayoutUnit(layoutObject->pixelSna ppedOffsetHeight(offsetParent)), layoutObject->styleRef()).round();
1132 return 0; 1133 return 0;
1133 } 1134 }
1134 1135
1135 Element* HTMLElement::unclosedOffsetParent() 1136 Element* HTMLElement::unclosedOffsetParent()
1136 { 1137 {
(...skipping 11 matching lines...) Expand all
1148 #ifndef NDEBUG 1149 #ifndef NDEBUG
1149 1150
1150 // For use in the debugger 1151 // For use in the debugger
1151 void dumpInnerHTML(blink::HTMLElement*); 1152 void dumpInnerHTML(blink::HTMLElement*);
1152 1153
1153 void dumpInnerHTML(blink::HTMLElement* element) 1154 void dumpInnerHTML(blink::HTMLElement* element)
1154 { 1155 {
1155 printf("%s\n", element->innerHTML().ascii().data()); 1156 printf("%s\n", element->innerHTML().ascii().data());
1156 } 1157 }
1157 #endif 1158 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCollection.h ('k') | third_party/WebKit/Source/core/layout/FloatingObjects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698